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

Unified Diff: examples/nesting_app/nesting_app.cc

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/ganesh_app/texture_uploader.h ('k') | examples/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/nesting_app/nesting_app.cc
diff --git a/examples/nesting_app/nesting_app.cc b/examples/nesting_app/nesting_app.cc
index 7d45df26e897a8bd0c9cefd8045385bda34b8980..5b00f6d6331b8843394fef9c084d7a27a2f86a73 100644
--- a/examples/nesting_app/nesting_app.cc
+++ b/examples/nesting_app/nesting_app.cc
@@ -39,28 +39,27 @@ class NestingApp
public ViewObserver {
public:
NestingApp() : nested_(nullptr), shell_(nullptr) {}
- virtual ~NestingApp() {}
+ ~NestingApp() override {}
private:
// Overridden from ApplicationDelegate:
- virtual void Initialize(ApplicationImpl* app) override {
+ void Initialize(ApplicationImpl* app) override {
shell_ = app->shell();
view_manager_client_factory_.reset(
new ViewManagerClientFactory(app->shell(), this));
}
// Overridden from ApplicationImpl:
- virtual bool ConfigureIncomingConnection(
- ApplicationConnection* connection) override {
+ bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
connection->ConnectToService(&window_manager_);
connection->AddService(view_manager_client_factory_.get());
return true;
}
// Overridden from ViewManagerDelegate:
- virtual void OnEmbed(View* root,
- InterfaceRequest<ServiceProvider> services,
- ServiceProviderPtr exposed_services) override {
+ void OnEmbed(View* root,
+ InterfaceRequest<ServiceProvider> services,
+ ServiceProviderPtr exposed_services) override {
root->AddObserver(this);
bitmap_uploader_.reset(new BitmapUploader(root));
bitmap_uploader_->Init(shell_);
@@ -75,16 +74,16 @@ class NestingApp
nested_->SetVisible(true);
nested_->Embed(kEmbeddedAppURL);
}
- virtual void OnViewManagerDisconnected(ViewManager* view_manager) override {
- base::MessageLoop::current()->Quit();
+ void OnViewManagerDisconnected(ViewManager* view_manager) override {
+ base::MessageLoop::current()->Quit();
}
// Overridden from ViewObserver:
- virtual void OnViewDestroyed(View* view) override {
+ void OnViewDestroyed(View* view) override {
// TODO(beng): reap views & child Views.
nested_ = NULL;
}
- virtual void OnViewInputEvent(View* view, const EventPtr& event) override {
+ void OnViewInputEvent(View* view, const EventPtr& event) override {
if (event->action == EVENT_TYPE_MOUSE_RELEASED)
window_manager_->CloseWindow(view->id());
}
« no previous file with comments | « examples/ganesh_app/texture_uploader.h ('k') | examples/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698