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

Side by Side Diff: ash/launcher/launcher.cc

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/launcher/launcher.h ('k') | ash/launcher/launcher_button.h » ('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 #include "ash/launcher/launcher.h" 5 #include "ash/launcher/launcher.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "ash/focus_cycler.h" 10 #include "ash/focus_cycler.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { 125 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) {
126 launcher_view_->RemoveIconObserver(observer); 126 launcher_view_->RemoveIconObserver(observer);
127 } 127 }
128 128
129 bool Launcher::IsShowingMenu() const { 129 bool Launcher::IsShowingMenu() const {
130 return launcher_view_->IsShowingMenu(); 130 return launcher_view_->IsShowingMenu();
131 } 131 }
132 132
133 void Launcher::ShowContextMenu(const gfx::Point& location) {
134 launcher_view_->ShowContextMenu(location, false);
135 }
136
137 bool Launcher::IsShowingOverflowBubble() const { 133 bool Launcher::IsShowingOverflowBubble() const {
138 return launcher_view_->IsShowingOverflowBubble(); 134 return launcher_view_->IsShowingOverflowBubble();
139 } 135 }
140 136
141 void Launcher::SetVisible(bool visible) const { 137 void Launcher::SetVisible(bool visible) const {
142 launcher_view_->SetVisible(visible); 138 launcher_view_->SetVisible(visible);
143 } 139 }
144 140
145 bool Launcher::IsVisible() const { 141 bool Launcher::IsVisible() const {
146 return launcher_view_->visible(); 142 return launcher_view_->visible();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 180
185 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) { 181 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) {
186 launcher_view_->SetBoundsRect(bounds); 182 launcher_view_->SetBoundsRect(bounds);
187 } 183 }
188 184
189 gfx::Rect Launcher::GetLauncherViewBounds() const { 185 gfx::Rect Launcher::GetLauncherViewBounds() const {
190 return launcher_view_->bounds(); 186 return launcher_view_->bounds();
191 } 187 }
192 188
193 } // namespace ash 189 } // namespace ash
OLDNEW
« no previous file with comments | « ash/launcher/launcher.h ('k') | ash/launcher/launcher_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698