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

Side by Side Diff: chrome/browser/views/tabs/tab.h

Issue 1616004: Fix Regression for Accessible Names (Closed)
Patch Set: Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_TABS_TAB_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TABS_TAB_H_
6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_ 6 #define CHROME_BROWSER_VIEWS_TABS_TAB_H_
7 7
8 #include "chrome/browser/tabs/tab_strip_model.h" 8 #include "chrome/browser/tabs/tab_strip_model.h"
9 #include "chrome/browser/views/tabs/tab_renderer.h" 9 #include "chrome/browser/views/tabs/tab_renderer.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual bool HasHitTestMask() const; 94 virtual bool HasHitTestMask() const;
95 virtual void GetHitTestMask(gfx::Path* mask) const; 95 virtual void GetHitTestMask(gfx::Path* mask) const;
96 virtual bool OnMousePressed(const views::MouseEvent& event); 96 virtual bool OnMousePressed(const views::MouseEvent& event);
97 virtual bool OnMouseDragged(const views::MouseEvent& event); 97 virtual bool OnMouseDragged(const views::MouseEvent& event);
98 virtual void OnMouseReleased(const views::MouseEvent& event, 98 virtual void OnMouseReleased(const views::MouseEvent& event,
99 bool canceled); 99 bool canceled);
100 virtual bool GetTooltipText(const gfx::Point& p, std::wstring* tooltip); 100 virtual bool GetTooltipText(const gfx::Point& p, std::wstring* tooltip);
101 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin); 101 virtual bool GetTooltipTextOrigin(const gfx::Point& p, gfx::Point* origin);
102 virtual std::string GetClassName() const { return kTabClassName; } 102 virtual std::string GetClassName() const { return kTabClassName; }
103 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); 103 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
104 virtual bool GetAccessibleName(std::wstring* name);
105 104
106 // views::ContextMenuController overrides: 105 // views::ContextMenuController overrides:
107 virtual void ShowContextMenu(views::View* source, 106 virtual void ShowContextMenu(views::View* source,
108 const gfx::Point& p, 107 const gfx::Point& p,
109 bool is_mouse_gesture); 108 bool is_mouse_gesture);
110 109
111 // views::ButtonListener overrides: 110 // views::ButtonListener overrides:
112 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 111 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
113 112
114 // Creates a path that contains the clickable region of the tab's visual 113 // Creates a path that contains the clickable region of the tab's visual
115 // representation. Used by GetViewForPoint for hit-testing. 114 // representation. Used by GetViewForPoint for hit-testing.
116 void MakePathForTab(gfx::Path* path) const; 115 void MakePathForTab(gfx::Path* path) const;
117 116
118 // An instance of a delegate object that can perform various actions based on 117 // An instance of a delegate object that can perform various actions based on
119 // user gestures. 118 // user gestures.
120 TabDelegate* delegate_; 119 TabDelegate* delegate_;
121 120
122 // True if the tab is being animated closed. 121 // True if the tab is being animated closed.
123 bool closing_; 122 bool closing_;
124 123
125 // If non-null it means we're showing a menu for the tab. 124 // If non-null it means we're showing a menu for the tab.
126 class TabContextMenuContents; 125 class TabContextMenuContents;
127 scoped_ptr<TabContextMenuContents> context_menu_contents_; 126 scoped_ptr<TabContextMenuContents> context_menu_contents_;
128 127
129 DISALLOW_COPY_AND_ASSIGN(Tab); 128 DISALLOW_COPY_AND_ASSIGN(Tab);
130 }; 129 };
131 130
132 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ 131 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698