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

Unified Diff: mojo/services/native_viewport/native_viewport_service.cc

Issue 109103003: Mojo: abstract interface implementation from generated Stub classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix build Created 6 years, 11 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
« no previous file with comments | « mojo/services/native_viewport/native_viewport_service.h ('k') | mojo/shell/service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/native_viewport/native_viewport_service.cc
diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
index af7ce8d7e0de9e97ae8c5f79a01240d093412ed1..0352ddf4781c43d240ce43436879151a0845a728 100644
--- a/mojo/services/native_viewport/native_viewport_service.cc
+++ b/mojo/services/native_viewport/native_viewport_service.cc
@@ -25,7 +25,7 @@ bool IsRateLimitedEventType(ui::Event* event) {
}
class NativeViewportService::NativeViewportImpl
- : public NativeViewportStub,
+ : public mojo::NativeViewport,
public NativeViewportDelegate {
public:
NativeViewportImpl(NativeViewportService* service,
@@ -34,8 +34,7 @@ class NativeViewportService::NativeViewportImpl
widget_(gfx::kNullAcceleratedWidget),
waiting_for_event_ack_(false),
pending_event_timestamp_(0),
- client_(client_handle.Pass()) {
- client_.SetPeer(this);
+ client_(client_handle.Pass(), this) {
}
virtual ~NativeViewportImpl() {}
@@ -155,9 +154,8 @@ class NativeViewportService::NativeViewportImpl
NativeViewportService::NativeViewportService(
ScopedMessagePipeHandle shell_handle)
- : shell_(shell_handle.Pass()),
+ : shell_(shell_handle.Pass(), this),
context_(NULL) {
- shell_.SetPeer(this);
}
NativeViewportService::~NativeViewportService() {}
« no previous file with comments | « mojo/services/native_viewport/native_viewport_service.h ('k') | mojo/shell/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698