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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view.cc

Issue 292813008: Implement SetViewContents in the client lib (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: mojo/services/public/cpp/view_manager/lib/view.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view.cc b/mojo/services/public/cpp/view_manager/lib/view.cc
index 1a85ae1c195ab991e81561c2e40678c8c728d140..b11929c6b81b246f219c07876f279f5692ae33a5 100644
--- a/mojo/services/public/cpp/view_manager/lib/view.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view.cc
@@ -56,6 +56,11 @@ void View::RemoveObserver(ViewObserver* observer) {
observers_.RemoveObserver(observer);
}
+void View::SetContents(const SkBitmap& contents) {
+ if (manager_)
+ ViewManagerPrivate(manager_).synchronizer()->SetViewContents(id_, contents);
+}
+
View::View(ViewManager* manager)
: id_(ViewManagerPrivate(manager).synchronizer()->CreateView()),
node_(NULL),
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/DEPS ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698