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

Side by Side Diff: mash/example/window_type_launcher/window_type_launcher.cc

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "mash/example/window_type_launcher/window_type_launcher.h" 5 #include "mash/example/window_type_launcher/window_type_launcher.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "components/mus/public/cpp/property_type_converters.h" 14 #include "components/mus/public/cpp/property_type_converters.h"
15 #include "mash/session/public/interfaces/session.mojom.h" 15 #include "mash/session/public/interfaces/session.mojom.h"
16 #include "services/shell/public/cpp/connection.h" 16 #include "services/shell/public/cpp/connection.h"
17 #include "services/shell/public/cpp/connector.h" 17 #include "services/shell/public/cpp/connector.h"
18 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
19 #include "ui/aura/window_event_dispatcher.h" 19 #include "ui/aura/window_event_dispatcher.h"
20 #include "ui/compositor/layer.h" 20 #include "ui/compositor/layer.h"
21 #include "ui/gfx/canvas.h" 21 #include "ui/gfx/canvas.h"
22 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
23 #include "ui/views/context_menu_controller.h" 22 #include "ui/views/context_menu_controller.h"
24 #include "ui/views/controls/button/button.h" 23 #include "ui/views/controls/button/button.h"
25 #include "ui/views/controls/button/label_button.h" 24 #include "ui/views/controls/button/label_button.h"
26 #include "ui/views/controls/menu/menu_delegate.h" 25 #include "ui/views/controls/menu/menu_delegate.h"
27 #include "ui/views/controls/menu/menu_item_view.h" 26 #include "ui/views/controls/menu/menu_item_view.h"
28 #include "ui/views/controls/menu/menu_runner.h" 27 #include "ui/views/controls/menu/menu_runner.h"
29 #include "ui/views/controls/textfield/textfield.h" 28 #include "ui/views/controls/textfield/textfield.h"
30 #include "ui/views/layout/grid_layout.h" 29 #include "ui/views/layout/grid_layout.h"
31 #include "ui/views/mus/aura_init.h" 30 #include "ui/views/mus/aura_init.h"
32 #include "ui/views/mus/window_manager_connection.h" 31 #include "ui/views/mus/window_manager_connection.h"
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 params.delegate = new WindowTypeLauncherView(this, connector_); 513 params.delegate = new WindowTypeLauncherView(this, connector_);
515 window->Init(params); 514 window->Init(params);
516 window->Show(); 515 window->Show();
517 windows_.push_back(window); 516 windows_.push_back(window);
518 } 517 }
519 518
520 void WindowTypeLauncher::Create(shell::Connection* connection, 519 void WindowTypeLauncher::Create(shell::Connection* connection,
521 mash::mojom::LaunchableRequest request) { 520 mash::mojom::LaunchableRequest request) {
522 bindings_.AddBinding(this, std::move(request)); 521 bindings_.AddBinding(this, std::move(request));
523 } 522 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698