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

Side by Side Diff: mash/shelf/shelf_application.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 | « mash/browser_driver/browser_driver_application_delegate.cc ('k') | mash/wallpaper/wallpaper.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/shelf/shelf_application.h" 5 #include "mash/shelf/shelf_application.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "components/mus/public/cpp/property_type_converters.h" 9 #include "components/mus/public/cpp/property_type_converters.h"
10 #include "mash/shelf/shelf_view.h" 10 #include "mash/shelf/shelf_view.h"
(...skipping 17 matching lines...) Expand all
28 views::WindowManagerConnection::Create(app); 28 views::WindowManagerConnection::Create(app);
29 29
30 views::Widget* widget = new views::Widget; 30 views::Widget* widget = new views::Widget;
31 views::Widget::InitParams params( 31 views::Widget::InitParams params(
32 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); 32 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
33 params.delegate = new ShelfView(app); 33 params.delegate = new ShelfView(app);
34 34
35 std::map<std::string, std::vector<uint8_t>> properties; 35 std::map<std::string, std::vector<uint8_t>> properties;
36 properties[mash::wm::mojom::kWindowContainer_Property] = 36 properties[mash::wm::mojom::kWindowContainer_Property] =
37 mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert( 37 mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(
38 mash::wm::mojom::CONTAINER_USER_SHELF); 38 static_cast<int32_t>(mash::wm::mojom::Container::USER_SHELF));
39 mus::Window* window = 39 mus::Window* window =
40 views::WindowManagerConnection::Get()->NewWindow(properties); 40 views::WindowManagerConnection::Get()->NewWindow(properties);
41 params.native_widget = new views::NativeWidgetMus( 41 params.native_widget = new views::NativeWidgetMus(
42 widget, app->shell(), window, mus::mojom::SURFACE_TYPE_DEFAULT); 42 widget, app->shell(), window, mus::mojom::SurfaceType::DEFAULT);
43 widget->Init(params); 43 widget->Init(params);
44 widget->Show(); 44 widget->Show();
45 } 45 }
46 46
47 bool ShelfApplication::ConfigureIncomingConnection( 47 bool ShelfApplication::ConfigureIncomingConnection(
48 mojo::ApplicationConnection* connection) { 48 mojo::ApplicationConnection* connection) {
49 return true; 49 return true;
50 } 50 }
51 51
52 } // namespace shelf 52 } // namespace shelf
53 } // namespace mash 53 } // namespace mash
OLDNEW
« no previous file with comments | « mash/browser_driver/browser_driver_application_delegate.cc ('k') | mash/wallpaper/wallpaper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698