OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |