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

Side by Side Diff: mojo/public/cpp/application/application_impl.h

Issue 514063003: Update view_manager and window_manager to make use of content handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewman2
Patch Set: git cl format Created 6 years, 3 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
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/html_viewer/html_document_view.h » ('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_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ 5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_
7 #include <vector> 7 #include <vector>
8 8
9 #include "mojo/public/cpp/application/application_connection.h" 9 #include "mojo/public/cpp/application/application_connection.h"
10 #include "mojo/public/cpp/application/lib/service_connector.h" 10 #include "mojo/public/cpp/application/lib/service_connector.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // 51 //
52 // 52 //
53 class ApplicationImpl : public InterfaceImpl<Application> { 53 class ApplicationImpl : public InterfaceImpl<Application> {
54 public: 54 public:
55 ApplicationImpl(ApplicationDelegate* delegate, 55 ApplicationImpl(ApplicationDelegate* delegate,
56 ScopedMessagePipeHandle shell_handle); 56 ScopedMessagePipeHandle shell_handle);
57 ApplicationImpl(ApplicationDelegate* delegate, 57 ApplicationImpl(ApplicationDelegate* delegate,
58 MojoHandle shell_handle); 58 MojoHandle shell_handle);
59 virtual ~ApplicationImpl(); 59 virtual ~ApplicationImpl();
60 60
61 Shell* shell() const { return shell_.get(); }
62
61 // Establishes a new connection to an application. Caller does not own. 63 // Establishes a new connection to an application. Caller does not own.
62 ApplicationConnection* ConnectToApplication(const String& application_url); 64 ApplicationConnection* ConnectToApplication(const String& application_url);
63 65
64 // Connect to application identified by |application_url| and connect to the 66 // Connect to application identified by |application_url| and connect to the
65 // service implementation of the interface identified by |Interface|. 67 // service implementation of the interface identified by |Interface|.
66 template <typename Interface> 68 template <typename Interface>
67 void ConnectToService(const std::string& application_url, 69 void ConnectToService(const std::string& application_url,
68 InterfacePtr<Interface>* ptr) { 70 InterfacePtr<Interface>* ptr) {
69 ConnectToApplication(application_url)->ConnectToService(ptr); 71 ConnectToApplication(application_url)->ConnectToService(ptr);
70 } 72 }
(...skipping 21 matching lines...) Expand all
92 ApplicationDelegate* delegate_; 94 ApplicationDelegate* delegate_;
93 ShellPtr shell_; 95 ShellPtr shell_;
94 ShellPtrWatcher* shell_watch_; 96 ShellPtrWatcher* shell_watch_;
95 97
96 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); 98 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl);
97 }; 99 };
98 100
99 } // namespace mojo 101 } // namespace mojo
100 102
101 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ 103 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/mojo_services.gypi ('k') | mojo/services/html_viewer/html_document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698