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

Side by Side Diff: chrome/browser/ui/views/location_bar/bubble_icon_view.h

Issue 2098643002: Add ink drop highlight for hover and focus on location icons (e.g. star, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: docs Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/bubble_icon_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void Layout() override; 64 void Layout() override;
65 bool OnMousePressed(const ui::MouseEvent& event) override; 65 bool OnMousePressed(const ui::MouseEvent& event) override;
66 void OnMouseReleased(const ui::MouseEvent& event) override; 66 void OnMouseReleased(const ui::MouseEvent& event) override;
67 bool OnKeyPressed(const ui::KeyEvent& event) override; 67 bool OnKeyPressed(const ui::KeyEvent& event) override;
68 bool OnKeyReleased(const ui::KeyEvent& event) override; 68 bool OnKeyReleased(const ui::KeyEvent& event) override;
69 void ViewHierarchyChanged( 69 void ViewHierarchyChanged(
70 const ViewHierarchyChangedDetails& details) override; 70 const ViewHierarchyChangedDetails& details) override;
71 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 71 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
72 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; 72 void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
73 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; 73 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
74 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
75 const override;
76 SkColor GetInkDropBaseColor() const override; 74 SkColor GetInkDropBaseColor() const override;
77 bool ShouldShowInkDropForFocus() const override; 75 bool ShouldShowInkDropForFocus() const override;
78 76
79 // ui::EventHandler: 77 // ui::EventHandler:
80 void OnGestureEvent(ui::GestureEvent* event) override; 78 void OnGestureEvent(ui::GestureEvent* event) override;
81 79
82 // views::WidgetObserver: 80 // views::WidgetObserver:
83 void OnWidgetDestroying(views::Widget* widget) override; 81 void OnWidgetDestroying(views::Widget* widget) override;
84 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; 82 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override;
85 83
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 126
129 // This is used to check if the bookmark bubble was showing during the mouse 127 // This is used to check if the bookmark bubble was showing during the mouse
130 // pressed event. If this is true then the mouse released event is ignored to 128 // pressed event. If this is true then the mouse released event is ignored to
131 // prevent the bubble from reshowing. 129 // prevent the bubble from reshowing.
132 bool suppress_mouse_released_action_; 130 bool suppress_mouse_released_action_;
133 131
134 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); 132 DISALLOW_COPY_AND_ASSIGN(BubbleIconView);
135 }; 133 };
136 134
137 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ 135 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/bubble_icon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698