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

Unified Diff: mojo/examples/aura_demo/root_window_host_mojo.h

Issue 160573002: Move root_window_host* in aura to window_tree_host*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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/examples/aura_demo/demo_context_factory.cc ('k') | mojo/examples/aura_demo/root_window_host_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/root_window_host_mojo.h
diff --git a/mojo/examples/aura_demo/root_window_host_mojo.h b/mojo/examples/aura_demo/root_window_host_mojo.h
deleted file mode 100644
index f851506bf86bbc773ddb30f9350c05bfe0201dd8..0000000000000000000000000000000000000000
--- a/mojo/examples/aura_demo/root_window_host_mojo.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 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_EXAMPLES_AURA_DEMO_ROOT_WINDOW_HOST_MOJO_H_
-#define MOJO_EXAMPLES_AURA_DEMO_ROOT_WINDOW_HOST_MOJO_H_
-
-#include "base/bind.h"
-#include "mojo/public/bindings/remote_ptr.h"
-#include "mojom/native_viewport.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 examples {
-
-class WindowTreeHostMojo : public aura::WindowTreeHost,
- public ui::EventSource,
- public NativeViewportClient {
- public:
- WindowTreeHostMojo(ScopedNativeViewportHandle viewport_handle,
- const gfx::Rect& bounds,
- const base::Callback<void()>& compositor_created_callback);
- virtual ~WindowTreeHostMojo();
-
- gfx::Rect bounds() const { return bounds_; }
- ScopedMessagePipeHandle TakeGLES2PipeHandle() { return gles2_handle_.Pass(); }
-
- private:
- // WindowTreeHost:
- virtual aura::RootWindow* GetRootWindow() OVERRIDE;
- virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
- virtual void Show() OVERRIDE;
- virtual void Hide() OVERRIDE;
- virtual void ToggleFullScreen() OVERRIDE;
- virtual gfx::Rect GetBounds() const OVERRIDE;
- virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
- virtual gfx::Insets GetInsets() const OVERRIDE;
- virtual void SetInsets(const gfx::Insets& insets) OVERRIDE;
- virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
- virtual void SetCapture() OVERRIDE;
- virtual void ReleaseCapture() OVERRIDE;
- virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
- virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
- virtual bool ConfineCursorToRootWindow() OVERRIDE;
- virtual void UnConfineCursor() OVERRIDE;
- virtual void OnCursorVisibilityChanged(bool show) OVERRIDE;
- virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
- virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
- virtual void PrepareForShutdown() OVERRIDE;
-
- // ui::EventSource:
- virtual ui::EventProcessor* GetEventProcessor() OVERRIDE;
-
- // Overridden from NativeViewportClient:
- virtual void OnCreated() MOJO_OVERRIDE;
- virtual void OnDestroyed() OVERRIDE;
- virtual void OnBoundsChanged(const Rect& bounds) OVERRIDE;
- virtual void OnEvent(const Event& event) OVERRIDE;
-
- static ui::ContextFactory* context_factory_;
-
- ScopedMessagePipeHandle gles2_handle_;
- RemotePtr<NativeViewport> native_viewport_;
- base::Callback<void()> compositor_created_callback_;
-
- gfx::Rect bounds_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo);
-};
-
-} // namespace examples
-} // namespace mojo
-
-#endif // MOJO_EXAMPLES_AURA_DEMO_ROOT_WINDOW_HOST_MOJO_H_
« no previous file with comments | « mojo/examples/aura_demo/demo_context_factory.cc ('k') | mojo/examples/aura_demo/root_window_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698