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

Side by Side Diff: mojo/services/view_manager/public/cpp/view_manager.h

Issue 818583002: Moves Create() off of View and onto ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge 2 trunk Created 6 years 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
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | services/window_manager/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_CPP_VIEW_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/services/view_manager/public/cpp/types.h" 10 #include "mojo/services/view_manager/public/cpp/types.h"
(...skipping 11 matching lines...) Expand all
22 // Returns the root of this connection. 22 // Returns the root of this connection.
23 virtual View* GetRoot() = 0; 23 virtual View* GetRoot() = 0;
24 24
25 // Returns a View known to this connection. 25 // Returns a View known to this connection.
26 virtual View* GetViewById(Id id) = 0; 26 virtual View* GetViewById(Id id) = 0;
27 27
28 // Returns the focused view; null if focus is not yet known or another app is 28 // Returns the focused view; null if focus is not yet known or another app is
29 // focused. 29 // focused.
30 virtual View* GetFocusedView() = 0; 30 virtual View* GetFocusedView() = 0;
31 31
32 // Creates and returns a new View (which is owned by the ViewManager). Views
33 // are initially hidden, use SetVisible(true) to show.
34 virtual View* CreateView() = 0;
35
32 protected: 36 protected:
33 virtual ~ViewManager() {} 37 virtual ~ViewManager() {}
34 }; 38 };
35 39
36 } // namespace mojo 40 } // namespace mojo
37 41
38 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_H_ 42 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/public/cpp/view.h ('k') | services/window_manager/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698