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

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

Issue 2530353002: Views: Add a11y information for IconLabelBubbleView and LocationIconView. (Closed)
Patch Set: Reorder method declaration to match superclass. Created 4 years 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_LOCATION_ICON_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" 9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 18 matching lines...) Expand all
29 // IconLabelBubbleView: 29 // IconLabelBubbleView:
30 gfx::Size GetMinimumSize() const override; 30 gfx::Size GetMinimumSize() const override;
31 bool OnMousePressed(const ui::MouseEvent& event) override; 31 bool OnMousePressed(const ui::MouseEvent& event) override;
32 bool OnMouseDragged(const ui::MouseEvent& event) override; 32 bool OnMouseDragged(const ui::MouseEvent& event) override;
33 void OnMouseReleased(const ui::MouseEvent& event) override; 33 void OnMouseReleased(const ui::MouseEvent& event) override;
34 void OnGestureEvent(ui::GestureEvent* event) override; 34 void OnGestureEvent(ui::GestureEvent* event) override;
35 bool GetTooltipText(const gfx::Point& p, 35 bool GetTooltipText(const gfx::Point& p,
36 base::string16* tooltip) const override; 36 base::string16* tooltip) const override;
37 SkColor GetTextColor() const override; 37 SkColor GetTextColor() const override;
38 bool OnActivate(const ui::Event& event) override; 38 bool OnActivate(const ui::Event& event) override;
39 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
39 40
40 // Whether we should show the tooltip for this icon or not. 41 // Whether we should show the tooltip for this icon or not.
41 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; } 42 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; }
42 43
43 // Returns what the minimum size would be if the label text were |text|. 44 // Returns what the minimum size would be if the label text were |text|.
44 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const; 45 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const;
45 46
46 const gfx::FontList& GetFontList() const { return font_list(); } 47 const gfx::FontList& GetFontList() const { return font_list(); }
47 48
48 // Sets whether the verbose security state text should be visible. 49 // Sets whether the verbose security state text should be visible.
(...skipping 25 matching lines...) Expand all
74 // True if hovering this view should display a tooltip. 75 // True if hovering this view should display a tooltip.
75 bool show_tooltip_; 76 bool show_tooltip_;
76 77
77 LocationBarView* location_bar_; 78 LocationBarView* location_bar_;
78 gfx::SlideAnimation animation_; 79 gfx::SlideAnimation animation_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(LocationIconView); 81 DISALLOW_COPY_AND_ASSIGN(LocationIconView);
81 }; 82 };
82 83
83 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ 84 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698