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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |