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

Unified Diff: trunk/src/mojo/services/public/cpp/view_manager/view.h

Issue 286653003: Revert 270122 "Synchronizes View instances across clients." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/mojo/services/public/cpp/view_manager/view.h
===================================================================
--- trunk/src/mojo/services/public/cpp/view_manager/view.h (revision 270124)
+++ trunk/src/mojo/services/public/cpp/view_manager/view.h (working copy)
@@ -6,45 +6,14 @@
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_H_
#include "base/basictypes.h"
-#include "base/observer_list.h"
-#include "mojo/services/public/cpp/view_manager/view_manager_types.h"
namespace mojo {
namespace services {
namespace view_manager {
-class ViewManager;
-class ViewObserver;
-class ViewTreeNode;
-
-// Views are owned by the ViewManager.
class View {
public:
- static View* Create(ViewManager* manager);
-
- void Destroy();
-
- TransportViewId id() const { return id_; }
- ViewTreeNode* node() { return node_; }
-
- void AddObserver(ViewObserver* observer);
- void RemoveObserver(ViewObserver* observer);
-
private:
- friend class ViewPrivate;
-
- explicit View(ViewManager* manager);
- View();
- ~View();
-
- void LocalDestroy();
-
- TransportViewId id_;
- ViewTreeNode* node_;
- ViewManager* manager_;
-
- ObserverList<ViewObserver> observers_;
-
DISALLOW_COPY_AND_ASSIGN(View);
};

Powered by Google App Engine
This is Rietveld 408576698