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

Side by Side Diff: services/view_manager/display_manager.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 5 #ifndef SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
6 #define SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 6 #define SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const mojo::Callback<void()>& native_viewport_closed_callback); 59 const mojo::Callback<void()>& native_viewport_closed_callback);
60 ~DefaultDisplayManager() override; 60 ~DefaultDisplayManager() override;
61 61
62 // DisplayManager: 62 // DisplayManager:
63 void Init(ConnectionManager* connection_manager) override; 63 void Init(ConnectionManager* connection_manager) override;
64 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override; 64 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override;
65 void SetViewportSize(const gfx::Size& size) override; 65 void SetViewportSize(const gfx::Size& size) override;
66 const mojo::ViewportMetrics& GetViewportMetrics() override; 66 const mojo::ViewportMetrics& GetViewportMetrics() override;
67 67
68 private: 68 private:
69 void OnCreatedNativeViewport(uint64_t native_viewport_id,
70 mojo::ViewportMetricsPtr metrics);
71 void Draw(); 69 void Draw();
72 70
73 void OnMetricsChanged(mojo::ViewportMetricsPtr metrics); 71 void OnMetricsChanged(mojo::ViewportMetricsPtr metrics);
74 72
75 void SetIdNamespace(uint32_t id_namespace); 73 void SetIdNamespace(uint32_t id_namespace);
76 74
77 // ErrorHandler: 75 // ErrorHandler:
78 void OnConnectionError() override; 76 void OnConnectionError() override;
79 77
80 mojo::ApplicationImpl* app_impl_; 78 mojo::ApplicationImpl* app_impl_;
(...skipping 10 matching lines...) Expand all
91 mojo::NativeViewportPtr native_viewport_; 89 mojo::NativeViewportPtr native_viewport_;
92 mojo::Callback<void()> native_viewport_closed_callback_; 90 mojo::Callback<void()> native_viewport_closed_callback_;
93 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; 91 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;
94 92
95 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); 93 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager);
96 }; 94 };
97 95
98 } // namespace view_manager 96 } // namespace view_manager
99 97
100 #endif // SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 98 #endif // SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698