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

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

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout Created 4 years, 7 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void OnMouseReleased(const ui::MouseEvent& event) override; 67 void OnMouseReleased(const ui::MouseEvent& event) override;
68 bool OnKeyPressed(const ui::KeyEvent& event) override; 68 bool OnKeyPressed(const ui::KeyEvent& event) override;
69 bool OnKeyReleased(const ui::KeyEvent& event) override; 69 bool OnKeyReleased(const ui::KeyEvent& event) override;
70 void ViewHierarchyChanged( 70 void ViewHierarchyChanged(
71 const ViewHierarchyChangedDetails& details) override; 71 const ViewHierarchyChangedDetails& details) override;
72 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 72 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
73 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; 73 void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
74 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; 74 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
75 std::unique_ptr<views::InkDropHover> CreateInkDropHover() const override; 75 std::unique_ptr<views::InkDropHover> CreateInkDropHover() const override;
76 SkColor GetInkDropBaseColor() const override; 76 SkColor GetInkDropBaseColor() const override;
77 bool ShouldShowInkDropForFocus() const override;
77 78
78 // ui::EventHandler: 79 // ui::EventHandler:
79 void OnGestureEvent(ui::GestureEvent* event) override; 80 void OnGestureEvent(ui::GestureEvent* event) override;
80 81
81 // views::WidgetObserver: 82 // views::WidgetObserver:
82 void OnWidgetDestroying(views::Widget* widget) override; 83 void OnWidgetDestroying(views::Widget* widget) override;
83 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; 84 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override;
84 85
85 protected: 86 protected:
86 // Calls OnExecuting and runs |command_id_| with a valid |command_updater_|. 87 // Calls OnExecuting and runs |command_id_| with a valid |command_updater_|.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // prevent the bubble from reshowing. 131 // prevent the bubble from reshowing.
131 bool suppress_mouse_released_action_; 132 bool suppress_mouse_released_action_;
132 133
133 // Animation delegate for the ink drop ripple effect. 134 // Animation delegate for the ink drop ripple effect.
134 std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_; 135 std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_;
135 136
136 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); 137 DISALLOW_COPY_AND_ASSIGN(BubbleIconView);
137 }; 138 };
138 139
139 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ 140 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | 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