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

Unified Diff: mojo/services/view_manager/root_view_manager.h

Issue 507563002: Removes usage of aura::Window from Node (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conditional Created 6 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/view_manager/root_view_manager.h
diff --git a/mojo/services/view_manager/root_view_manager.h b/mojo/services/view_manager/root_view_manager.h
index 366e86bd39f1617b30602fe31cd0e73ff2f68c98..6e0fd86770d99d9a0227f8508db6e660923d9fe6 100644
--- a/mojo/services/view_manager/root_view_manager.h
+++ b/mojo/services/view_manager/root_view_manager.h
@@ -12,11 +12,16 @@
#include "mojo/public/cpp/bindings/callback.h"
#include "mojo/services/view_manager/view_manager_export.h"
+namespace gfx {
+class Rect;
+}
+
namespace aura {
namespace client {
class FocusClient;
class WindowTreeClient;
}
+class Window;
class WindowTreeHost;
}
@@ -30,6 +35,7 @@ class ApplicationConnection;
namespace service {
+class Node;
class RootNodeManager;
class RootViewManagerDelegate;
@@ -42,10 +48,15 @@ class MOJO_VIEW_MANAGER_EXPORT RootViewManager {
const Callback<void()>& native_viewport_closed_callback);
virtual ~RootViewManager();
+ // Schedules a paint for the specified region of the specified node.
+ void SchedulePaint(const Node* node, const gfx::Rect& bounds);
+
// See description above field for details.
bool in_setup() const { return in_setup_; }
private:
+ class RootWindowDelegateImpl;
+
void OnCompositorCreated();
RootViewManagerDelegate* delegate_;
@@ -55,6 +66,11 @@ class MOJO_VIEW_MANAGER_EXPORT RootViewManager {
// Returns true if adding the root node's window to |window_tree_host_|.
bool in_setup_;
+ scoped_ptr<RootWindowDelegateImpl> window_delegate_;
+
+ // Owned by it's parent aura::Window.
jamesr 2014/08/26 04:51:25 nittiest of the nits: "its"
sky 2014/08/26 13:10:54 Done.
+ aura::Window* root_window_;
+
scoped_ptr<gfx::Screen> screen_;
scoped_ptr<aura::WindowTreeHost> window_tree_host_;
scoped_ptr<aura::client::WindowTreeClient> window_tree_client_;

Powered by Google App Engine
This is Rietveld 408576698