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

Unified Diff: mojo/aura/window_tree_host_mojo.h

Issue 315223004: Moves view_manager files to view_manager directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm sample_view_manager.app again Created 6 years, 6 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/aura/context_factory_mojo.cc ('k') | mojo/aura/window_tree_host_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/aura/window_tree_host_mojo.h
diff --git a/mojo/aura/window_tree_host_mojo.h b/mojo/aura/window_tree_host_mojo.h
deleted file mode 100644
index ed5246d386568edcf2237824e07e52abfcebabda..0000000000000000000000000000000000000000
--- a/mojo/aura/window_tree_host_mojo.h
+++ /dev/null
@@ -1,72 +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_AURA_WINDOW_TREE_HOST_MOJO_H_
-#define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
-
-#include "base/bind.h"
-#include "mojo/services/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 {
-
-class ContextFactoryMojo;
-
-class WindowTreeHostMojo : public aura::WindowTreeHost,
- public ui::EventSource,
- public NativeViewportClient {
- public:
- WindowTreeHostMojo(NativeViewportPtr viewport,
- const gfx::Rect& bounds,
- const base::Callback<void()>& compositor_created_callback);
- virtual ~WindowTreeHostMojo();
-
- 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 OnDeviceScaleFactorChanged(float device_scale_factor) 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() OVERRIDE;
- virtual void OnDestroyed() OVERRIDE;
- virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE;
- virtual void OnEvent(EventPtr event,
- const mojo::Callback<void()>& callback) OVERRIDE;
-
- static ContextFactoryMojo* context_factory_;
-
- NativeViewportPtr native_viewport_;
- base::Callback<void()> compositor_created_callback_;
-
- gfx::Rect bounds_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMojo);
-};
-
-} // namespace mojo
-
-#endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
« no previous file with comments | « mojo/aura/context_factory_mojo.cc ('k') | mojo/aura/window_tree_host_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698