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

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

Issue 14601: Some cleanup in view menu delegate (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.cc ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/views/base_button.h" 10 #include "chrome/views/base_button.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 private: 86 private:
87 // views::View overrides: 87 // views::View overrides:
88 virtual bool HasHitTestMask() const; 88 virtual bool HasHitTestMask() const;
89 virtual void GetHitTestMask(gfx::Path* mask) const; 89 virtual void GetHitTestMask(gfx::Path* mask) const;
90 virtual bool OnMousePressed(const views::MouseEvent& event); 90 virtual bool OnMousePressed(const views::MouseEvent& event);
91 virtual bool OnMouseDragged(const views::MouseEvent& event); 91 virtual bool OnMouseDragged(const views::MouseEvent& event);
92 virtual void OnMouseReleased(const views::MouseEvent& event, 92 virtual void OnMouseReleased(const views::MouseEvent& event,
93 bool canceled); 93 bool canceled);
94 virtual bool GetTooltipText(int x, int y, std::wstring* tooltip); 94 virtual bool GetTooltipText(int x, int y, std::wstring* tooltip);
95 virtual bool GetTooltipTextOrigin(int x, int y, CPoint* origin); 95 virtual bool GetTooltipTextOrigin(int x, int y, gfx::Point* origin);
96 virtual std::string GetClassName() const { return kTabClassName; } 96 virtual std::string GetClassName() const { return kTabClassName; }
97 virtual bool GetAccessibleRole(VARIANT* role); 97 virtual bool GetAccessibleRole(VARIANT* role);
98 virtual bool GetAccessibleName(std::wstring* name); 98 virtual bool GetAccessibleName(std::wstring* name);
99 99
100 // views::ContextMenuController overrides: 100 // views::ContextMenuController overrides:
101 virtual void ShowContextMenu(views::View* source, 101 virtual void ShowContextMenu(views::View* source,
102 int x, 102 int x,
103 int y, 103 int y,
104 bool is_mouse_gesture); 104 bool is_mouse_gesture);
105 105
106 // views::BaseButton::ButtonListener overrides: 106 // views::BaseButton::ButtonListener overrides:
107 virtual void ButtonPressed(views::BaseButton* sender); 107 virtual void ButtonPressed(views::BaseButton* sender);
108 108
109 // Creates a path that contains the clickable region of the tab's visual 109 // Creates a path that contains the clickable region of the tab's visual
110 // representation. Used by GetViewForPoint for hit-testing. 110 // representation. Used by GetViewForPoint for hit-testing.
111 void MakePathForTab(gfx::Path* path) const; 111 void MakePathForTab(gfx::Path* path) const;
112 112
113 // An instance of a delegate object that can perform various actions based on 113 // An instance of a delegate object that can perform various actions based on
114 // user gestures. 114 // user gestures.
115 TabDelegate* delegate_; 115 TabDelegate* delegate_;
116 116
117 // True if the tab is being animated closed. 117 // True if the tab is being animated closed.
118 bool closing_; 118 bool closing_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(Tab); 120 DISALLOW_COPY_AND_ASSIGN(Tab);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_ 123 #endif // CHROME_BROWSER_VIEWS_TABS_TAB_H_
124 124
OLDNEW
« no previous file with comments | « chrome/browser/views/bookmark_manager_view.cc ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698