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

Side by Side Diff: ash/shell.cc

Issue 10911342: Add ScreenPositionClient::ConvertNativePointToScreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/accelerators/focus_manager_factory.h" 10 #include "ash/accelerators/focus_manager_factory.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 internal::SystemGestureEventFilter* 166 internal::SystemGestureEventFilter*
167 Shell::TestApi::system_gesture_event_filter() { 167 Shell::TestApi::system_gesture_event_filter() {
168 return shell_->system_gesture_filter_.get(); 168 return shell_->system_gesture_filter_.get();
169 } 169 }
170 170
171 internal::WorkspaceController* Shell::TestApi::workspace_controller() { 171 internal::WorkspaceController* Shell::TestApi::workspace_controller() {
172 return shell_->GetPrimaryRootWindowController()->workspace_controller(); 172 return shell_->GetPrimaryRootWindowController()->workspace_controller();
173 } 173 }
174 174
175 internal::ScreenPositionController*
176 Shell::TestApi::screen_position_controller() {
177 return shell_->screen_position_controller_.get();
178 }
179
175 //////////////////////////////////////////////////////////////////////////////// 180 ////////////////////////////////////////////////////////////////////////////////
176 // Shell, public: 181 // Shell, public:
177 182
178 Shell::Shell(ShellDelegate* delegate) 183 Shell::Shell(ShellDelegate* delegate)
179 : screen_(new ScreenAsh), 184 : screen_(new ScreenAsh),
180 active_root_window_(NULL), 185 active_root_window_(NULL),
181 env_filter_(NULL), 186 env_filter_(NULL),
182 delegate_(delegate), 187 delegate_(delegate),
183 #if defined(OS_CHROMEOS) 188 #if defined(OS_CHROMEOS)
184 output_configurator_(new chromeos::OutputConfigurator()), 189 output_configurator_(new chromeos::OutputConfigurator()),
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 } 769 }
765 770
766 void Shell::ShowCursor(bool visible) { 771 void Shell::ShowCursor(bool visible) {
767 RootWindowList root_windows = GetAllRootWindows(); 772 RootWindowList root_windows = GetAllRootWindows();
768 for (RootWindowList::iterator iter = root_windows.begin(); 773 for (RootWindowList::iterator iter = root_windows.begin();
769 iter != root_windows.end(); ++iter) 774 iter != root_windows.end(); ++iter)
770 (*iter)->ShowCursor(visible); 775 (*iter)->ShowCursor(visible);
771 } 776 }
772 777
773 } // namespace ash 778 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698