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

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

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Polished for review. Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ICON_LABEL_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Returns a multiplier used to calculate the actual width of the view based 69 // Returns a multiplier used to calculate the actual width of the view based
70 // on its desired width. This ranges from 0 for a zero-width view to 1 for a 70 // on its desired width. This ranges from 0 for a zero-width view to 1 for a
71 // full-width view and can be used to animate the width of the view. 71 // full-width view and can be used to animate the width of the view.
72 virtual double WidthMultiplier() const; 72 virtual double WidthMultiplier() const;
73 73
74 // Returns true when animation is in progress and is shrinking. 74 // Returns true when animation is in progress and is shrinking.
75 virtual bool IsShrinking() const; 75 virtual bool IsShrinking() const;
76 76
77 // The view has been activated by a user gesture such as spacebar. Returns 77 // The view has been activated by a user gesture such as spacebar. Returns
78 // true if some handling was performed. 78 // true if some handling was performed.
79 virtual bool OnActivate(); 79 virtual bool OnActivate(const ui::Event* event);
80 80
81 // views::View: 81 // views::View:
82 gfx::Size GetPreferredSize() const override; 82 gfx::Size GetPreferredSize() const override;
83 void Layout() override; 83 void Layout() override;
84 bool OnKeyPressed(const ui::KeyEvent& event) override; 84 bool OnKeyPressed(const ui::KeyEvent& event) override;
85 bool OnKeyReleased(const ui::KeyEvent& event) override; 85 bool OnKeyReleased(const ui::KeyEvent& event) override;
86 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; 86 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override;
87 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; 87 void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
88 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; 88 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
89 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() 89 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // the native theme (so it responds to native theme updates). TODO(estade): 130 // the native theme (so it responds to native theme updates). TODO(estade):
131 // remove when MD is default. 131 // remove when MD is default.
132 SkColor parent_background_color_; 132 SkColor parent_background_color_;
133 133
134 bool should_show_background_; 134 bool should_show_background_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); 136 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView);
137 }; 137 };
138 138
139 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ 139 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698