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

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

Issue 692693002: Make it possible to change the viewport size (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix style nits Created 6 years, 1 month 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 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
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& size);
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
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_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698