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

Unified Diff: mojo/services/view_manager/window_tree_host_impl.h

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… 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/view_manager/window_tree_host_impl.h
diff --git a/mojo/services/view_manager/window_tree_host_impl.h b/mojo/services/view_manager/window_tree_host_impl.h
deleted file mode 100644
index b222d683e6506394ed5bf58d55cdbf1ea9cf2297..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/window_tree_host_impl.h
+++ /dev/null
@@ -1,81 +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_AURA_WINDOW_TREE_HOST_MOJO_H_
-#define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
-
-#include "base/bind.h"
-#include "mojo/services/public/interfaces/gpu/gpu.mojom.h"
-#include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom.h"
-#include "ui/aura/window_tree_host.h"
-#include "ui/events/event_source.h"
-#include "ui/gfx/rect.h"
-
-namespace ui {
-class ContextFactory;
-}
-
-namespace mojo {
-namespace service {
-
-class ContextFactoryImpl;
-
-class WindowTreeHostImpl : public aura::WindowTreeHost,
- public ui::EventSource,
- public NativeViewportClient {
- public:
- WindowTreeHostImpl(NativeViewportPtr viewport,
- GpuPtr gpu_service,
- const gfx::Rect& bounds,
- const Callback<void()>& compositor_created_callback,
- const Callback<void()>& native_viewport_closed_callback,
- const Callback<void(EventPtr)>& event_received_callback);
- virtual ~WindowTreeHostImpl();
-
- gfx::Rect bounds() const { return bounds_; }
-
- private:
- // WindowTreeHost:
- virtual ui::EventSource* GetEventSource() OVERRIDE;
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
- virtual void Show() OVERRIDE;
- virtual void Hide() OVERRIDE;
- virtual gfx::Rect GetBounds() const OVERRIDE;
- virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
- virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
- virtual void SetCapture() OVERRIDE;
- virtual void ReleaseCapture() OVERRIDE;
- virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
- virtual void SetCursorNative(gfx::NativeCursor cursor) OVERRIDE;
- virtual void MoveCursorToNative(const gfx::Point& location) OVERRIDE;
- virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
-
- // ui::EventSource:
- virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
-
- // Overridden from NativeViewportClient:
- virtual void OnCreated(uint64_t native_viewport_id) OVERRIDE;
- virtual void OnDestroyed() OVERRIDE;
- virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE;
- virtual void OnEvent(EventPtr event,
- const mojo::Callback<void()>& callback) OVERRIDE;
-
- static ContextFactoryImpl* context_factory_;
-
- NativeViewportPtr native_viewport_;
- GpuPtr gpu_service_;
- gfx::AcceleratedWidget widget_;
- Callback<void()> compositor_created_callback_;
- Callback<void()> native_viewport_closed_callback_;
- Callback<void(EventPtr)> event_received_callback_;
-
- gfx::Rect bounds_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
-};
-
-} // namespace service
-} // namespace mojo
-
-#endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
« no previous file with comments | « mojo/services/view_manager/window_manager_access_policy.cc ('k') | mojo/services/view_manager/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698