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

Side by Side Diff: mojo/services/view_manager/window_tree_host_impl.h

Issue 474883003: Move focus from the view manager to the window manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h" 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
(...skipping 10 matching lines...) Expand all
21 class ContextFactoryImpl; 21 class ContextFactoryImpl;
22 22
23 class WindowTreeHostImpl : public aura::WindowTreeHost, 23 class WindowTreeHostImpl : public aura::WindowTreeHost,
24 public ui::EventSource, 24 public ui::EventSource,
25 public NativeViewportClient { 25 public NativeViewportClient {
26 public: 26 public:
27 WindowTreeHostImpl( 27 WindowTreeHostImpl(
28 NativeViewportPtr viewport, 28 NativeViewportPtr viewport,
29 const gfx::Rect& bounds, 29 const gfx::Rect& bounds,
30 const Callback<void()>& compositor_created_callback, 30 const Callback<void()>& compositor_created_callback,
31 const Callback<void()>& native_viewport_closed_callback); 31 const Callback<void()>& native_viewport_closed_callback,
32 const Callback<void(EventPtr)>& event_received_callback);
32 virtual ~WindowTreeHostImpl(); 33 virtual ~WindowTreeHostImpl();
33 34
34 gfx::Rect bounds() const { return bounds_; } 35 gfx::Rect bounds() const { return bounds_; }
35 36
36 private: 37 private:
37 // WindowTreeHost: 38 // WindowTreeHost:
38 virtual ui::EventSource* GetEventSource() OVERRIDE; 39 virtual ui::EventSource* GetEventSource() OVERRIDE;
39 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 40 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
40 virtual void Show() OVERRIDE; 41 virtual void Show() OVERRIDE;
41 virtual void Hide() OVERRIDE; 42 virtual void Hide() OVERRIDE;
(...skipping 15 matching lines...) Expand all
57 virtual void OnDestroyed(const mojo::Callback<void()>& callback) OVERRIDE; 58 virtual void OnDestroyed(const mojo::Callback<void()>& callback) OVERRIDE;
58 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE; 59 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE;
59 virtual void OnEvent(EventPtr event, 60 virtual void OnEvent(EventPtr event,
60 const mojo::Callback<void()>& callback) OVERRIDE; 61 const mojo::Callback<void()>& callback) OVERRIDE;
61 62
62 static ContextFactoryImpl* context_factory_; 63 static ContextFactoryImpl* context_factory_;
63 64
64 NativeViewportPtr native_viewport_; 65 NativeViewportPtr native_viewport_;
65 Callback<void()> compositor_created_callback_; 66 Callback<void()> compositor_created_callback_;
66 Callback<void()> native_viewport_closed_callback_; 67 Callback<void()> native_viewport_closed_callback_;
68 Callback<void(EventPtr)> event_received_callback_;
67 69
68 gfx::Rect bounds_; 70 gfx::Rect bounds_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 72 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
71 }; 73 };
72 74
73 } // namespace service 75 } // namespace service
74 } // namespace mojo 76 } // namespace mojo
75 77
76 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 78 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
OLDNEW
« 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