summaryrefslogtreecommitdiffstats
path: root/mojo/examples
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/examples')
-rw-r--r--mojo/examples/window_manager/window_manager.cc4
-rw-r--r--mojo/examples/wm_flow/embedded/embedded.cc10
2 files changed, 4 insertions, 10 deletions
diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc
index d0e6d82..627a67a 100644
--- a/mojo/examples/window_manager/window_manager.cc
+++ b/mojo/examples/window_manager/window_manager.cc
@@ -201,8 +201,6 @@ class RootLayoutManager : public ViewObserver {
View* content_view = view_manager_->GetViewById(content_view_id_);
content_view->SetBounds(new_bounds);
- // Force the view's bitmap to be recreated
- content_view->SetColor(SK_ColorBLUE);
int delta_width = new_bounds.width() - old_bounds.width();
int delta_height = new_bounds.height() - old_bounds.height();
@@ -375,8 +373,6 @@ class WindowManager
view->SetBounds(gfx::Rect(root->bounds().size()));
content_view_id_ = view->id();
- root->SetColor(SK_ColorBLUE);
-
Id launcher_ui_id = CreateLauncherUI();
Id control_panel_id = CreateControlPanel(view);
diff --git a/mojo/examples/wm_flow/embedded/embedded.cc b/mojo/examples/wm_flow/embedded/embedded.cc
index 0a0d86b..0d332ab 100644
--- a/mojo/examples/wm_flow/embedded/embedded.cc
+++ b/mojo/examples/wm_flow/embedded/embedded.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "mojo/application/application_runner_chromium.h"
#include "mojo/examples/wm_flow/app/embedder.mojom.h"
#include "mojo/examples/wm_flow/embedded/embeddee.mojom.h"
#include "mojo/public/cpp/application/application_connection.h"
@@ -84,11 +85,8 @@ class WMFlowEmbedded : public mojo::ApplicationDelegate,
} // namespace examples
-namespace mojo {
-
-// static
-ApplicationDelegate* ApplicationDelegate::Create() {
- return new examples::WMFlowEmbedded;
+MojoResult MojoMain(MojoHandle shell_handle) {
+ mojo::ApplicationRunnerChromium runner(new examples::WMFlowEmbedded);
+ return runner.Run(shell_handle);
}
-} // namespace