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

Side by Side Diff: ui/views/mus/native_widget_mus.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
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/platform_test_helper_mus.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 "ui/views/mus/native_widget_mus.h" 5 #include "ui/views/mus/native_widget_mus.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "components/mus/public/cpp/property_type_converters.h" 9 #include "components/mus/public/cpp/property_type_converters.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 behavior |= mus::mojom::kResizeBehaviorCanMinimize; 168 behavior |= mus::mojom::kResizeBehaviorCanMinimize;
169 return behavior; 169 return behavior;
170 } 170 }
171 171
172 } // namespace 172 } // namespace
173 173
174 //////////////////////////////////////////////////////////////////////////////// 174 ////////////////////////////////////////////////////////////////////////////////
175 // NativeWidgetMus, public: 175 // NativeWidgetMus, public:
176 176
177 NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate, 177 NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate,
178 mojo::shell::mojom::Shell* shell, 178 mojo::Shell* shell,
179 mus::Window* window, 179 mus::Window* window,
180 mus::mojom::SurfaceType surface_type) 180 mus::mojom::SurfaceType surface_type)
181 : window_(window), 181 : window_(window),
182 shell_(shell), 182 shell_(shell),
183 native_widget_delegate_(delegate), 183 native_widget_delegate_(delegate),
184 surface_type_(surface_type), 184 surface_type_(surface_type),
185 show_state_before_fullscreen_(ui::PLATFORM_WINDOW_STATE_UNKNOWN), 185 show_state_before_fullscreen_(ui::PLATFORM_WINDOW_STATE_UNKNOWN),
186 ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET), 186 ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET),
187 content_(new aura::Window(this)), 187 content_(new aura::Window(this)),
188 close_widget_factory_(this) { 188 close_widget_factory_(this) {
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 848
849 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { 849 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) {
850 native_widget_delegate_->OnGestureEvent(event); 850 native_widget_delegate_->OnGestureEvent(event);
851 } 851 }
852 852
853 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) { 853 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) {
854 GetWidget()->Close(); 854 GetWidget()->Close();
855 } 855 }
856 856
857 } // namespace views 857 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/platform_test_helper_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698