summaryrefslogtreecommitdiff
path: root/chromium/ui/views/style/platform_style.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/style/platform_style.h')
-rw-r--r--chromium/ui/views/style/platform_style.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/chromium/ui/views/style/platform_style.h b/chromium/ui/views/style/platform_style.h
index e40325ee146..a5c8d415300 100644
--- a/chromium/ui/views/style/platform_style.h
+++ b/chromium/ui/views/style/platform_style.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "ui/views/controls/button/button.h"
+#include "ui/views/view.h"
#include "ui/views/views_export.h"
namespace gfx {
@@ -72,14 +73,13 @@ class VIEWS_EXPORT PlatformStyle {
static const float kFocusHaloThickness;
static const float kFocusHaloInset;
- // Whether "button-like" (for example, buttons in the top chrome or Omnibox
- // decorations) UI elements should use a focus ring, rather than show
- // hover state on focus.
- static const bool kPreferFocusRings;
-
// Whether controls in inactive widgets appear disabled.
static const bool kInactiveWidgetControlsAppearDisabled;
+ // Default setting at bubble creation time for whether arrow will be adjusted
+ // for bubbles going off-screen to bring more bubble area into view.
+ static const bool kAdjustBubbleIfOffscreen;
+
// Creates the default scrollbar for the given orientation.
static std::unique_ptr<ScrollBar> CreateScrollBar(bool is_horizontal);
@@ -99,6 +99,9 @@ class VIEWS_EXPORT PlatformStyle {
static gfx::Range RangeToDeleteBackwards(const base::string16& text,
size_t cursor_position);
+ // Returns the default focus behavior based on the platform.
+ static View::FocusBehavior DefaultFocusBehavior();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
};