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

Side by Side Diff: ash/display/screen_position_controller.h

Issue 10836065: Improve WorkspaceWindowResizer::CompleteDrag() so that the function moves the window to a root windo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final rebase Created 8 years, 4 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 | « no previous file | ash/display/screen_position_controller.cc » ('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 #ifndef ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ 5 #ifndef ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
6 #define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ 6 #define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/aura/client/screen_position_client.h" 9 #include "ui/aura/client/screen_position_client.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace internal { 12 namespace internal {
13 13
14 class ScreenPositionController : public aura::client::ScreenPositionClient { 14 class ScreenPositionController : public aura::client::ScreenPositionClient {
15 public: 15 public:
16 ScreenPositionController() {} 16 ScreenPositionController() {}
17 virtual ~ScreenPositionController() {} 17 virtual ~ScreenPositionController() {}
18 18
19 // aura::client::ScreenPositionClient overrides: 19 // aura::client::ScreenPositionClient overrides:
20 virtual void ConvertPointToScreen(const aura::Window* window, 20 virtual void ConvertPointToScreen(const aura::Window* window,
21 gfx::Point* point) OVERRIDE; 21 gfx::Point* point) OVERRIDE;
22 virtual void ConvertPointFromScreen(const aura::Window* window, 22 virtual void ConvertPointFromScreen(const aura::Window* window,
23 gfx::Point* point) OVERRIDE; 23 gfx::Point* point) OVERRIDE;
24 virtual void SetBounds(aura::Window* window, 24 virtual void SetBounds(aura::Window* window,
25 const gfx::Rect& bounds) OVERRIDE; 25 const gfx::Rect& bounds,
26 const gfx::Display& display) OVERRIDE;
26 27
27 private: 28 private:
28 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); 29 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController);
29 }; 30 };
30 31
31 } // internal 32 } // internal
32 } // ash 33 } // ash
33 34
34 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ 35 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/display/screen_position_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698