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

Side by Side Diff: ash/launcher/launcher.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 | « ash/desktop_background/desktop_background_view.cc ('k') | ash/launcher/launcher.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 ASH_LAUNCHER_LAUNCHER_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_H_
6 #define ASH_LAUNCHER_LAUNCHER_H_ 6 #define ASH_LAUNCHER_LAUNCHER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher_types.h" 9 #include "ash/launcher/launcher_types.h"
10 #include "ash/shelf/shelf_types.h" 10 #include "ash/shelf/shelf_types.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Cycles the window focus linearly over the current launcher items. 74 // Cycles the window focus linearly over the current launcher items.
75 void CycleWindowLinear(CycleDirection direction); 75 void CycleWindowLinear(CycleDirection direction);
76 76
77 void AddIconObserver(LauncherIconObserver* observer); 77 void AddIconObserver(LauncherIconObserver* observer);
78 void RemoveIconObserver(LauncherIconObserver* observer); 78 void RemoveIconObserver(LauncherIconObserver* observer);
79 79
80 // Returns true if the Launcher is showing a context menu. 80 // Returns true if the Launcher is showing a context menu.
81 bool IsShowingMenu() const; 81 bool IsShowingMenu() const;
82 82
83 // Show the context menu for the Launcher.
84 void ShowContextMenu(const gfx::Point& location);
85
86 bool IsShowingOverflowBubble() const; 83 bool IsShowingOverflowBubble() const;
87 84
88 void SetVisible(bool visible) const; 85 void SetVisible(bool visible) const;
89 bool IsVisible() const; 86 bool IsVisible() const;
90 87
91 views::View* GetAppListButtonView() const; 88 views::View* GetAppListButtonView() const;
92 89
93 // Switches to a 0-indexed (in order of creation) window. 90 // Switches to a 0-indexed (in order of creation) window.
94 // A negative index switches to the last window in the list. 91 // A negative index switches to the last window in the list.
95 void SwitchToWindow(int window_index); 92 void SwitchToWindow(int window_index);
(...skipping 19 matching lines...) Expand all
115 LauncherDelegate* delegate_; 112 LauncherDelegate* delegate_;
116 113
117 ShelfWidget* shelf_widget_; 114 ShelfWidget* shelf_widget_;
118 115
119 DISALLOW_COPY_AND_ASSIGN(Launcher); 116 DISALLOW_COPY_AND_ASSIGN(Launcher);
120 }; 117 };
121 118
122 } // namespace ash 119 } // namespace ash
123 120
124 #endif // ASH_LAUNCHER_LAUNCHER_H_ 121 #endif // ASH_LAUNCHER_LAUNCHER_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_view.cc ('k') | ash/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698