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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h

Issue 555953007: Fixes for surfaces bindings exposed by wm_flow app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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_manager_client_impl.h
diff --git a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h
index 556e1013e2d91dbddbb0bda4420e802ded91b522..27ee53211e016b628e312f846e966f91fe6e9df4 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h
+++ b/mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h
@@ -57,6 +57,7 @@ class ViewManagerClientImpl : public ViewManager,
// TODO(jamesr): Remove once all callers switch from SetContents to
// SetSurfaceId.
void SetViewContents(Id view_id, const SkBitmap& contents);
+ void SetViewColor(Id view_id, SkColor color);
void SetFocus(Id view_id);
void SetVisible(Id view_id, bool visible);
@@ -133,6 +134,8 @@ class ViewManagerClientImpl : public ViewManager,
void OnActionCompleted(bool success);
void OnActionCompletedWithErrorCode(ErrorCode code);
+ BitmapUploader* BitmapUploaderForView(Id view_id);
+
base::Callback<void(bool)> ActionCompletedCallback();
base::Callback<void(ErrorCode)> ActionCompletedCallbackWithErrorCode();
@@ -158,7 +161,8 @@ class ViewManagerClientImpl : public ViewManager,
// TODO(jamesr): Remove once all callers switch from SetContents to
// SetSurfaceId.
Shell* shell_;
- scoped_ptr<BitmapUploader> bitmap_uploader_;
+ typedef std::map<Id, BitmapUploader*> BitmapUploaderMap;
+ BitmapUploaderMap bitmap_uploaders_;
DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl);
};

Powered by Google App Engine
This is Rietveld 408576698