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

Unified Diff: mojo/services/native_viewport/native_viewport_impl.h

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow Android to be built Created 7 years 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/native_viewport/native_viewport_impl.h
diff --git a/mojo/services/native_viewport/native_viewport_impl.h b/mojo/services/native_viewport/native_viewport_impl.h
deleted file mode 100644
index 5a971552c82144508831c9eee04296ebe44d4bae..0000000000000000000000000000000000000000
--- a/mojo/services/native_viewport/native_viewport_impl.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
-#define MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
-
-#include <string>
-
-#include "mojo/public/bindings/lib/remote_ptr.h"
-#include "mojo/public/system/core_cpp.h"
-#include "mojo/services/native_viewport/native_viewport.h"
-#include "mojom/native_viewport.h"
-
-namespace gpu {
-class GLInProcessContext;
-}
-
-namespace mojo {
-namespace services {
-class GLES2Impl;
-
-class NativeViewportImpl : public NativeViewportStub,
- public NativeViewportDelegate {
- public:
- NativeViewportImpl(shell::Context* context,
- ScopedMessagePipeHandle pipe);
- virtual ~NativeViewportImpl();
-
- // Overridden from NativeViewportStub:
- virtual void Open() OVERRIDE;
- virtual void Close() OVERRIDE;
- virtual void CreateGLES2Context(
- ScopedMessagePipeHandle gles2_client) OVERRIDE;
- virtual void AckEvent(const Event& event) OVERRIDE;
-
- private:
- // Overridden from services::NativeViewportDelegate:
- virtual void OnResized(const gfx::Size& size) OVERRIDE;
- virtual void OnAcceleratedWidgetAvailable(
- gfx::AcceleratedWidget widget) OVERRIDE;
- virtual bool OnEvent(ui::Event* ui_event) OVERRIDE;
- virtual void OnDestroyed() OVERRIDE;
-
- void CreateGLES2ContextIfNeeded();
-
- shell::Context* context_;
- gfx::AcceleratedWidget widget_;
- scoped_ptr<services::NativeViewport> native_viewport_;
- scoped_ptr<GLES2Impl> gles2_;
- bool waiting_for_event_ack_;
- int64 pending_event_timestamp_;
-
- RemotePtr<NativeViewportClient> client_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeViewportImpl);
-};
-
-} // namespace services
-} // namespace mojo
-
-#endif // MOJO_SERVICES_NATIVE_VIEWPORT_NATIVE_VIEWPORT_IMPL_H_
« no previous file with comments | « mojo/services/native_viewport/native_viewport_export.h ('k') | mojo/services/native_viewport/native_viewport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698