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

Side by Side Diff: mojo/ui/view_provider_app.h

Issue 1985223003: Factor stuff from ApplicationImpl out to a new class, ApplicationImplBase. (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_test_base_no_app_impl
Patch Set: fix android Created 4 years, 7 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 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 MOJO_UI_VIEW_PROVIDER_APP_H_ 5 #ifndef MOJO_UI_VIEW_PROVIDER_APP_H_
6 #define MOJO_UI_VIEW_PROVIDER_APP_H_ 6 #define MOJO_UI_VIEW_PROVIDER_APP_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/common/strong_binding_set.h" 10 #include "mojo/common/strong_binding_set.h"
11 #include "mojo/public/c/system/main.h" 11 #include "mojo/public/c/system/main.h"
12 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/application_impl.h" 13 #include "mojo/public/cpp/application/application_impl.h"
13 #include "mojo/public/cpp/application/service_provider_impl.h" 14 #include "mojo/public/cpp/application/service_provider_impl.h"
14 #include "mojo/public/cpp/system/macros.h" 15 #include "mojo/public/cpp/system/macros.h"
15 #include "mojo/services/ui/views/interfaces/view_provider.mojom.h" 16 #include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
16 17
17 namespace mojo { 18 namespace mojo {
18 namespace ui { 19 namespace ui {
19 20
20 // Abstract implementation of a simple application that offers a ViewProvider. 21 // Abstract implementation of a simple application that offers a ViewProvider.
21 // Subclasses must provide a function to create the necessary Views. 22 // Subclasses must provide a function to create the necessary Views.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ApplicationImpl* app_impl_ = nullptr; 67 ApplicationImpl* app_impl_ = nullptr;
67 StrongBindingSet<ViewProvider> bindings_; 68 StrongBindingSet<ViewProvider> bindings_;
68 69
69 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewProviderApp); 70 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewProviderApp);
70 }; 71 };
71 72
72 } // namespace ui 73 } // namespace ui
73 } // namespace mojo 74 } // namespace mojo
74 75
75 #endif // MOJO_UI_VIEW_PROVIDER_APP_H_ 76 #endif // MOJO_UI_VIEW_PROVIDER_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698