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

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

Issue 2539363005: Converts ash to use aura-mus (Closed)
Patch Set: merge Created 4 years 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
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 <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "ui/aura/client/screen_position_client.h" 12 #include "ui/aura/client/screen_position_client.h"
12 13
13 namespace ash { 14 namespace ash {
14 15
15 class ScreenPositionController : public aura::client::ScreenPositionClient { 16 class ASH_EXPORT ScreenPositionController
17 : public aura::client::ScreenPositionClient {
16 public: 18 public:
17 // Finds the root window at |location| in |window|'s coordinates 19 // Finds the root window at |location| in |window|'s coordinates
18 // from given |root_windows| and returns the found root window and 20 // from given |root_windows| and returns the found root window and
19 // location in that root window's coordinates. The function usually 21 // location in that root window's coordinates. The function usually
20 // returns |window->GetRootWindow()|, but if the mouse pointer is 22 // returns |window->GetRootWindow()|, but if the mouse pointer is
21 // moved outside the |window|'s root while the mouse is captured, it 23 // moved outside the |window|'s root while the mouse is captured, it
22 // returns the other root window. 24 // returns the other root window.
23 static void ConvertHostPointToRelativeToRootWindow( 25 static void ConvertHostPointToRelativeToRootWindow(
24 aura::Window* root_window, 26 aura::Window* root_window,
25 const std::vector<aura::Window*>& root_windows, 27 const std::vector<aura::Window*>& root_windows,
(...skipping 14 matching lines...) Expand all
40 const gfx::Rect& bounds, 42 const gfx::Rect& bounds,
41 const display::Display& display) override; 43 const display::Display& display) override;
42 44
43 private: 45 private:
44 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); 46 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController);
45 }; 47 };
46 48
47 } // namespace ash 49 } // namespace ash
48 50
49 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ 51 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698