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

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

Issue 12047111: Set scale/orientation property to aura root window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 RootWindowHostDelegate* AsRootWindowHostDelegate(); 99 RootWindowHostDelegate* AsRootWindowHostDelegate();
100 100
101 // Sets the size of the root window. 101 // Sets the size of the root window.
102 void SetHostSize(const gfx::Size& size_in_pixel); 102 void SetHostSize(const gfx::Size& size_in_pixel);
103 gfx::Size GetHostSize() const; 103 gfx::Size GetHostSize() const;
104 104
105 // Sets the bounds of the host window. 105 // Sets the bounds of the host window.
106 void SetHostBounds(const gfx::Rect& size_in_pixel); 106 void SetHostBounds(const gfx::Rect& size_in_pixel);
107 107
108 // Sets an integer property on the host window using platform-specific means.
109 void SetHostWindowIntProperty(const std::string& name, int value);
110
108 // Returns where the RootWindow is on screen. 111 // Returns where the RootWindow is on screen.
109 gfx::Point GetHostOrigin() const; 112 gfx::Point GetHostOrigin() const;
110 113
111 // Sets the currently-displayed cursor. If the cursor was previously hidden 114 // Sets the currently-displayed cursor. If the cursor was previously hidden
112 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is 115 // via ShowCursor(false), it will remain hidden until ShowCursor(true) is
113 // called, at which point the cursor that was last set via SetCursor() will be 116 // called, at which point the cursor that was last set via SetCursor() will be
114 // used. 117 // used.
115 void SetCursor(gfx::NativeCursor cursor); 118 void SetCursor(gfx::NativeCursor cursor);
116 119
117 // Invoked when the cursor's visibility has changed. 120 // Invoked when the cursor's visibility has changed.
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; 406 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_;
404 407
405 scoped_ptr<ui::ViewProp> prop_; 408 scoped_ptr<ui::ViewProp> prop_;
406 409
407 DISALLOW_COPY_AND_ASSIGN(RootWindow); 410 DISALLOW_COPY_AND_ASSIGN(RootWindow);
408 }; 411 };
409 412
410 } // namespace aura 413 } // namespace aura
411 414
412 #endif // UI_AURA_ROOT_WINDOW_H_ 415 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698