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

Side by Side Diff: mojo/shell/public/cpp/lib/application_delegate.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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 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 #include "mojo/shell/public/cpp/application_delegate.h" 5 #include "mojo/shell/public/cpp/application_delegate.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 8
9 ApplicationDelegate::ApplicationDelegate() { 9 ApplicationDelegate::ApplicationDelegate() {
10 } 10 }
11 ApplicationDelegate::~ApplicationDelegate() { 11 ApplicationDelegate::~ApplicationDelegate() {
12 } 12 }
13 13
14 void ApplicationDelegate::Initialize(ApplicationImpl* app) { 14 void ApplicationDelegate::Initialize(Shell* app, const std::string& url,
15 uint32_t id) {
15 } 16 }
16 17
17 bool ApplicationDelegate::AcceptConnection(ApplicationConnection* connection) { 18 bool ApplicationDelegate::AcceptConnection(ApplicationConnection* connection) {
18 return true; 19 return true;
19 } 20 }
20 21
21 bool ApplicationDelegate::ShellConnectionLost() { 22 bool ApplicationDelegate::ShellConnectionLost() {
22 return true; 23 return true;
23 } 24 }
24 25
25 void ApplicationDelegate::Quit() { 26 void ApplicationDelegate::Quit() {
26 } 27 }
27 28
28 } // namespace mojo 29 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/application_test_base.h ('k') | mojo/shell/public/cpp/lib/application_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698