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

Side by Side Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2477453003: Makes DesktopWindowTreeHostMus call OnNativeWidgetCreated() (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/desktop_window_tree_host_mus.h" 5 #include "ui/views/mus/desktop_window_tree_host_mus.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/client/drag_drop_client.h" 9 #include "ui/aura/client/drag_drop_client.h"
10 #include "ui/aura/client/focus_client.h" 10 #include "ui/aura/client/focus_client.h"
(...skipping 27 matching lines...) Expand all
38 38
39 bool DesktopWindowTreeHostMus::IsDocked() const { 39 bool DesktopWindowTreeHostMus::IsDocked() const {
40 return window()->GetProperty(aura::client::kShowStateKey) == 40 return window()->GetProperty(aura::client::kShowStateKey) ==
41 ui::SHOW_STATE_DOCKED; 41 ui::SHOW_STATE_DOCKED;
42 } 42 }
43 43
44 void DesktopWindowTreeHostMus::Init(aura::Window* content_window, 44 void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
45 const Widget::InitParams& params) {} 45 const Widget::InitParams& params) {}
46 46
47 void DesktopWindowTreeHostMus::OnNativeWidgetCreated( 47 void DesktopWindowTreeHostMus::OnNativeWidgetCreated(
48 const Widget::InitParams& params) {} 48 const Widget::InitParams& params) {
49 native_widget_delegate_->OnNativeWidgetCreated(true);
50 }
49 51
50 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostMus::CreateTooltip() { 52 std::unique_ptr<corewm::Tooltip> DesktopWindowTreeHostMus::CreateTooltip() {
51 return base::MakeUnique<corewm::TooltipAura>(); 53 return base::MakeUnique<corewm::TooltipAura>();
52 } 54 }
53 55
54 std::unique_ptr<aura::client::DragDropClient> 56 std::unique_ptr<aura::client::DragDropClient>
55 DesktopWindowTreeHostMus::CreateDragDropClient( 57 DesktopWindowTreeHostMus::CreateDragDropClient(
56 DesktopNativeCursorManager* cursor_manager) { 58 DesktopNativeCursorManager* cursor_manager) {
57 // aura-mus handles installing a DragDropClient. 59 // aura-mus handles installing a DragDropClient.
58 return nullptr; 60 return nullptr;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 Widget* widget = native_widget_delegate_->AsWidget(); 336 Widget* widget = native_widget_delegate_->AsWidget();
335 window()->SetProperty(aura::client::kCanMaximizeKey, 337 window()->SetProperty(aura::client::kCanMaximizeKey,
336 widget->widget_delegate()->CanMaximize()); 338 widget->widget_delegate()->CanMaximize());
337 window()->SetProperty(aura::client::kCanMinimizeKey, 339 window()->SetProperty(aura::client::kCanMinimizeKey,
338 widget->widget_delegate()->CanMinimize()); 340 widget->widget_delegate()->CanMinimize());
339 window()->SetProperty(aura::client::kCanResizeKey, 341 window()->SetProperty(aura::client::kCanResizeKey,
340 widget->widget_delegate()->CanResize()); 342 widget->widget_delegate()->CanResize());
341 } 343 }
342 344
343 } // namespace views 345 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698