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

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: 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) { 128 void Launcher::RemoveIconObserver(LauncherIconObserver* observer) {
129 launcher_view_->RemoveIconObserver(observer); 129 launcher_view_->RemoveIconObserver(observer);
130 } 130 }
131 131
132 bool Launcher::IsShowingMenu() const { 132 bool Launcher::IsShowingMenu() const {
133 return launcher_view_->IsShowingMenu(); 133 return launcher_view_->IsShowingMenu();
134 } 134 }
135 135
136 void Launcher::ShowContextMenu(const gfx::Point& location) { 136 void Launcher::ShowContextMenu(const gfx::Point& location) {
137 launcher_view_->ShowContextMenu(location, false); 137 launcher_view_->ShowContextMenu(location, ui::CONTEXT_MENU_SOURCE_KEYBOARD);
138 } 138 }
139 139
140 bool Launcher::IsShowingOverflowBubble() const { 140 bool Launcher::IsShowingOverflowBubble() const {
141 return launcher_view_->IsShowingOverflowBubble(); 141 return launcher_view_->IsShowingOverflowBubble();
142 } 142 }
143 143
144 void Launcher::SetVisible(bool visible) const { 144 void Launcher::SetVisible(bool visible) const {
145 launcher_view_->SetVisible(visible); 145 launcher_view_->SetVisible(visible);
146 } 146 }
147 147
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) { 188 void Launcher::SetLauncherViewBounds(gfx::Rect bounds) {
189 launcher_view_->SetBoundsRect(bounds); 189 launcher_view_->SetBoundsRect(bounds);
190 } 190 }
191 191
192 gfx::Rect Launcher::GetLauncherViewBounds() const { 192 gfx::Rect Launcher::GetLauncherViewBounds() const {
193 return launcher_view_->bounds(); 193 return launcher_view_->bounds();
194 } 194 }
195 195
196 } // namespace ash 196 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698