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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_strip_controller.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.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) 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_TABS_TAB_STRIP_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
7 7
8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h" 8 #include "chrome/browser/ui/views/tabs/tab_strip_types.h"
9 #include "ui/base/ui_base_types.h"
9 10
10 class GURL; 11 class GURL;
11 class Tab; 12 class Tab;
12 class TabStrip; 13 class TabStrip;
13 14
14 namespace gfx { 15 namespace gfx {
15 class Point; 16 class Point;
16 } 17 }
17 18
18 namespace ui { 19 namespace ui {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Toggles the selection of the specified index in the model. 60 // Toggles the selection of the specified index in the model.
60 virtual void ToggleSelected(int index) = 0; 61 virtual void ToggleSelected(int index) = 0;
61 62
62 // Adds the selection the anchor to |index|. 63 // Adds the selection the anchor to |index|.
63 virtual void AddSelectionFromAnchorTo(int index) = 0; 64 virtual void AddSelectionFromAnchorTo(int index) = 0;
64 65
65 // Closes the tab at the specified index in the model. 66 // Closes the tab at the specified index in the model.
66 virtual void CloseTab(int index, CloseTabSource source) = 0; 67 virtual void CloseTab(int index, CloseTabSource source) = 0;
67 68
68 // Shows a context menu for the tab at the specified point in screen coords. 69 // Shows a context menu for the tab at the specified point in screen coords.
69 virtual void ShowContextMenuForTab(Tab* tab, const gfx::Point& p) = 0; 70 virtual void ShowContextMenuForTab(Tab* tab,
71 const gfx::Point& p,
72 ui::MenuSourceType source_type) = 0;
70 73
71 // Updates the loading animations of all the tabs. 74 // Updates the loading animations of all the tabs.
72 virtual void UpdateLoadingAnimations() = 0; 75 virtual void UpdateLoadingAnimations() = 0;
73 76
74 // Returns true if the associated TabStrip's delegate supports tab moving or 77 // Returns true if the associated TabStrip's delegate supports tab moving or
75 // detaching. Used by the Frame to determine if dragging on the Tab 78 // detaching. Used by the Frame to determine if dragging on the Tab
76 // itself should move the window in cases where there's only one 79 // itself should move the window in cases where there's only one
77 // non drag-able Tab. 80 // non drag-able Tab.
78 virtual int HasAvailableDragActions() const = 0; 81 virtual int HasAvailableDragActions() const = 0;
79 82
(...skipping 19 matching lines...) Expand all
99 // Notifies controller that the user started dragging this tabstrip's tabs. 102 // Notifies controller that the user started dragging this tabstrip's tabs.
100 virtual void OnStartedDraggingTabs() = 0; 103 virtual void OnStartedDraggingTabs() = 0;
101 104
102 // Notifies controller that the user stopped dragging this tabstrip's tabs. 105 // Notifies controller that the user stopped dragging this tabstrip's tabs.
103 // This is also called when the tabs that the user is dragging were detached 106 // This is also called when the tabs that the user is dragging were detached
104 // from this tabstrip but the user is still dragging the tabs. 107 // from this tabstrip but the user is still dragging the tabs.
105 virtual void OnStoppedDraggingTabs() = 0; 108 virtual void OnStoppedDraggingTabs() = 0;
106 }; 109 };
107 110
108 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_ 111 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698