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

Side by Side Diff: mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h

Issue 331563003: Launching + Views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void Reorder(Id node_id, Id relative_node_id, OrderDirection direction); 50 void Reorder(Id node_id, Id relative_node_id, OrderDirection direction);
51 51
52 // Returns true if the specified node/view was created by this connection. 52 // Returns true if the specified node/view was created by this connection.
53 bool OwnsNode(Id id) const; 53 bool OwnsNode(Id id) const;
54 bool OwnsView(Id id) const; 54 bool OwnsView(Id id) const;
55 55
56 void SetActiveView(Id node_id, Id view_id); 56 void SetActiveView(Id node_id, Id view_id);
57 void SetBounds(Id node_id, const gfx::Rect& bounds); 57 void SetBounds(Id node_id, const gfx::Rect& bounds);
58 void SetViewContents(Id view_id, const SkBitmap& contents); 58 void SetViewContents(Id view_id, const SkBitmap& contents);
59 void SetFocus(Id node_id);
59 60
60 void Embed(const String& url, Id node_id); 61 void Embed(const String& url, Id node_id);
61 62
62 void set_changes_acked_callback(const base::Callback<void(void)>& callback) { 63 void set_changes_acked_callback(const base::Callback<void(void)>& callback) {
63 changes_acked_callback_ = callback; 64 changes_acked_callback_ = callback;
64 } 65 }
65 void ClearChangesAckedCallback() { 66 void ClearChangesAckedCallback() {
66 changes_acked_callback_ = base::Callback<void(void)>(); 67 changes_acked_callback_ = base::Callback<void(void)>();
67 } 68 }
68 69
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 154
154 IViewManager* service_; 155 IViewManager* service_;
155 156
156 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); 157 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer);
157 }; 158 };
158 159
159 } // namespace view_manager 160 } // namespace view_manager
160 } // namespace mojo 161 } // namespace mojo
161 162
162 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H _ 163 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698