Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ |
| 6 #define MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ | 6 #define MOJO_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 27 matching lines...) Expand all Loading... | |
| 38 NON_EXPORTED_BASE(public SurfaceClient) { | 38 NON_EXPORTED_BASE(public SurfaceClient) { |
| 39 public: | 39 public: |
| 40 DisplayManager(ApplicationConnection* app_connection, | 40 DisplayManager(ApplicationConnection* app_connection, |
| 41 ConnectionManager* connection_manager, | 41 ConnectionManager* connection_manager, |
| 42 const Callback<void()>& native_viewport_closed_callback); | 42 const Callback<void()>& native_viewport_closed_callback); |
| 43 ~DisplayManager() override; | 43 ~DisplayManager() override; |
| 44 | 44 |
| 45 // Schedules a paint for the specified region of the specified view. | 45 // Schedules a paint for the specified region of the specified view. |
| 46 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds); | 46 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds); |
| 47 | 47 |
| 48 void SetViewportSize(const gfx::Size&); | |
|
sky
2014/10/30 03:23:57
Chrome/Google style is to always have names in (th
| |
| 49 | |
| 48 // See description above field for details. | 50 // See description above field for details. |
| 49 bool in_setup() const { return in_setup_; } | 51 bool in_setup() const { return in_setup_; } |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 void OnCreatedNativeViewport(uint64_t native_viewport_id); | 54 void OnCreatedNativeViewport(uint64_t native_viewport_id); |
| 53 void OnSurfaceConnectionCreated(SurfacePtr surface, uint32_t id_namespace); | 55 void OnSurfaceConnectionCreated(SurfacePtr surface, uint32_t id_namespace); |
| 54 void Draw(); | 56 void Draw(); |
| 55 | 57 |
| 56 // NativeViewportClient implementation. | 58 // NativeViewportClient implementation. |
| 57 void OnDestroyed() override; | 59 void OnDestroyed() override; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 77 Callback<void()> native_viewport_closed_callback_; | 79 Callback<void()> native_viewport_closed_callback_; |
| 78 base::WeakPtrFactory<DisplayManager> weak_factory_; | 80 base::WeakPtrFactory<DisplayManager> weak_factory_; |
| 79 | 81 |
| 80 DISALLOW_COPY_AND_ASSIGN(DisplayManager); | 82 DISALLOW_COPY_AND_ASSIGN(DisplayManager); |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 } // namespace service | 85 } // namespace service |
| 84 } // namespace mojo | 86 } // namespace mojo |
| 85 | 87 |
| 86 #endif // MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ | 88 #endif // MOJO_SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ |
| OLD | NEW |