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

Side by Side Diff: ui/views/mus/aura_init.h

Issue 2511233002: Add the beginning of a simple window manager that we'll support on Windows. (Closed)
Patch Set: . Created 4 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 | « mash/simple_wm/simple_wm.cc ('k') | ui/views/mus/aura_init.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_VIEWS_MUS_AURA_INIT_H_ 5 #ifndef UI_VIEWS_MUS_AURA_INIT_H_
6 #define UI_VIEWS_MUS_AURA_INIT_H_ 6 #define UI_VIEWS_MUS_AURA_INIT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 class ViewsDelegate; 36 class ViewsDelegate;
37 37
38 // Sets up necessary state for aura when run with the viewmanager. 38 // Sets up necessary state for aura when run with the viewmanager.
39 // |resource_file| is the path to the apk file containing the resources. 39 // |resource_file| is the path to the apk file containing the resources.
40 class VIEWS_MUS_EXPORT AuraInit { 40 class VIEWS_MUS_EXPORT AuraInit {
41 public: 41 public:
42 enum class Mode { 42 enum class Mode {
43 // Indicates AuraInit should target using aura with mus. 43 // Indicates AuraInit should target using aura with mus.
44 AURA_MUS, 44 AURA_MUS,
45 45
46 // Indicates AuraInit should target using aura with mus, for a Window
47 // Manager client.
48 AURA_MUS_WINDOW_MANAGER,
49
46 // Indicates AuraInit should target using ui::Window. 50 // Indicates AuraInit should target using ui::Window.
47 UI, 51 UI
48 }; 52 };
49 53
50 // |resource_file| is the file to load strings and 1x icons from. 54 // |resource_file| is the file to load strings and 1x icons from.
51 // |resource_file_200| can be an empty string, otherwise it is the file to 55 // |resource_file_200| can be an empty string, otherwise it is the file to
52 // load 2x icons from. 56 // load 2x icons from.
53 AuraInit(service_manager::Connector* connector, 57 AuraInit(service_manager::Connector* connector,
54 const service_manager::Identity& identity, 58 const service_manager::Identity& identity,
55 const std::string& resource_file, 59 const std::string& resource_file,
56 const std::string& resource_file_200 = std::string(), 60 const std::string& resource_file_200 = std::string(),
57 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr, 61 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr,
(...skipping 16 matching lines...) Expand all
74 std::unique_ptr<MusClient> mus_client_; 78 std::unique_ptr<MusClient> mus_client_;
75 std::unique_ptr<aura::Env> env_; 79 std::unique_ptr<aura::Env> env_;
76 std::unique_ptr<ViewsDelegate> views_delegate_; 80 std::unique_ptr<ViewsDelegate> views_delegate_;
77 81
78 DISALLOW_COPY_AND_ASSIGN(AuraInit); 82 DISALLOW_COPY_AND_ASSIGN(AuraInit);
79 }; 83 };
80 84
81 } // namespace views 85 } // namespace views
82 86
83 #endif // UI_VIEWS_MUS_AURA_INIT_H_ 87 #endif // UI_VIEWS_MUS_AURA_INIT_H_
OLDNEW
« no previous file with comments | « mash/simple_wm/simple_wm.cc ('k') | ui/views/mus/aura_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698