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

Side by Side Diff: ui/aura/root_window_host.h

Issue 10241005: Make win_aura work without ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ui/base/cursor/cursor.h" 10 #include "ui/base/cursor/cursor.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 virtual ~RootWindowHost() {} 28 virtual ~RootWindowHost() {}
29 29
30 // Creates a new RootWindowHost. The caller owns the returned value. 30 // Creates a new RootWindowHost. The caller owns the returned value.
31 static RootWindowHost* Create(const gfx::Rect& bounds); 31 static RootWindowHost* Create(const gfx::Rect& bounds);
32 32
33 // Returns the actual size of the screen. 33 // Returns the actual size of the screen.
34 // (gfx::Screen only reports on the virtual desktop exposed by Aura.) 34 // (gfx::Screen only reports on the virtual desktop exposed by Aura.)
35 static gfx::Size GetNativeScreenSize(); 35 static gfx::Size GetNativeScreenSize();
36 36
37 // Returns the RootWindowHost for the specified accelerated widget, or NULL if
38 // there is none associated.
39 static RootWindowHost* GetForAcceleratedWidget(
40 gfx::AcceleratedWidget accelerated_widget);
41
37 // Sets the RootWindow this RootWindowHost is hosting. RootWindowHost does not 42 // Sets the RootWindow this RootWindowHost is hosting. RootWindowHost does not
38 // own the RootWindow. 43 // own the RootWindow.
39 virtual void SetRootWindow(RootWindow* root_window) = 0; 44 virtual void SetRootWindow(RootWindow* root_window) = 0;
45 virtual RootWindow* GetRootWindow() = 0;
40 46
41 // Returns the accelerated widget. 47 // Returns the accelerated widget.
42 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; 48 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
43 49
44 // Shows the RootWindowHost. 50 // Shows the RootWindowHost.
45 virtual void Show() = 0; 51 virtual void Show() = 0;
46 52
47 // Toggles the host's full screen state. 53 // Toggles the host's full screen state.
48 virtual void ToggleFullScreen() = 0; 54 virtual void ToggleFullScreen() = 0;
49 55
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 90
85 // Posts |native_event| to the platform's event queue. 91 // Posts |native_event| to the platform's event queue.
86 #if !defined(OS_MACOSX) 92 #if !defined(OS_MACOSX)
87 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; 93 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0;
88 #endif 94 #endif
89 }; 95 };
90 96
91 } // namespace aura 97 } // namespace aura
92 98
93 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ 99 #endif // UI_AURA_ROOT_WINDOW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698