Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: ui/views/controls/scroll_view.h

Issue 2813353002: Ensure that the focus ring in the bookmarks bar does not paint outside the parent view. (Closed)
Patch Set: Rename layer notification to OnChildLayerChanged() Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/scroll_view.h
diff --git a/ui/views/controls/scroll_view.h b/ui/views/controls/scroll_view.h
index af9111a05cae1a2dd25daba64afe629560c7751e..62d9d32ba8d93c2d98fee5474ab8f34c5b2cc494 100644
--- a/ui/views/controls/scroll_view.h
+++ b/ui/views/controls/scroll_view.h
@@ -105,6 +105,7 @@ class VIEWS_EXPORT ScrollView : public View, public ScrollBarController {
void OnGestureEvent(ui::GestureEvent* event) override;
const char* GetClassName() const override;
void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
+ void OnChildLayerChanged(View* child) override;
// ScrollBarController overrides:
void ScrollToPosition(ScrollBar* source, int position) override;
@@ -204,6 +205,9 @@ class VIEWS_EXPORT ScrollView : public View, public ScrollBarController {
// Focus ring, if one is installed.
View* focus_ring_ = nullptr;
+ // Set to true if we enabled layering for the viewport.
+ bool viewport_layer_enabled_ = false;
+
DISALLOW_COPY_AND_ASSIGN(ScrollView);
};

Powered by Google App Engine
This is Rietveld 408576698