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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.h

Issue 1915063003: Change ContentSettingImageView activation to key release (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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: chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
index 6b872feb1b2d54b5ec2317bcf333c102efe4268f..aac794c3176205481de324efeab2828c96b36b8c 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
@@ -78,9 +78,14 @@ class IconLabelBubbleView : public views::InkDropHostView {
// padding before the label.
virtual int GetImageAndPaddingWidth() const;
+ // The view has been activated by a user gesture such as spacebar. Returns
+ // true if some handling was performed.
+ virtual bool OnActivate();
+
// views::View:
gfx::Size GetPreferredSize() const override;
void Layout() override;
+ bool OnKeyReleased(const ui::KeyEvent& event) override;
void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override;
void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;

Powered by Google App Engine
This is Rietveld 408576698