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

Side by Side Diff: services/ui/demo/mus_demo_internal.cc

Issue 2764963003: aura-mus: add a drag representation image. (Closed)
Patch Set: Patch cleanup. Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "services/ui/demo/mus_demo_internal.h" 5 #include "services/ui/demo/mus_demo_internal.h"
6 6
7 #include "services/service_manager/public/cpp/service_context.h" 7 #include "services/service_manager/public/cpp/service_context.h"
8 #include "services/ui/demo/window_tree_data.h" 8 #include "services/ui/demo/window_tree_data.h"
9 #include "ui/aura/mus/window_tree_client.h" 9 #include "ui/aura/mus/window_tree_client.h"
10 #include "ui/aura/mus/window_tree_host_mus.h" 10 #include "ui/aura/mus/window_tree_host_mus.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 NOTREACHED(); 58 NOTREACHED();
59 return nullptr; 59 return nullptr;
60 } 60 }
61 61
62 void MusDemoInternal::OnWmClientJankinessChanged( 62 void MusDemoInternal::OnWmClientJankinessChanged(
63 const std::set<aura::Window*>& client_windows, 63 const std::set<aura::Window*>& client_windows,
64 bool janky) { 64 bool janky) {
65 // Don't care 65 // Don't care
66 } 66 }
67 67
68 void MusDemoInternal::OnWmBuildDragImage(const gfx::Point& cursor_location,
69 const SkBitmap& drag_image,
70 const gfx::Vector2d& drag_image_offset,
71 ui::mojom::DragEventSource source) {}
72
73 void MusDemoInternal::OnWmMoveDragImage(const gfx::Point& cursor_location) {}
74
75 void MusDemoInternal::OnWmDestroyDragImage() {}
76
68 void MusDemoInternal::OnWmWillCreateDisplay(const display::Display& display) { 77 void MusDemoInternal::OnWmWillCreateDisplay(const display::Display& display) {
69 AddPrimaryDisplay(display); 78 AddPrimaryDisplay(display);
70 } 79 }
71 80
72 void MusDemoInternal::OnWmNewDisplay( 81 void MusDemoInternal::OnWmNewDisplay(
73 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host, 82 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host,
74 const display::Display& display) { 83 const display::Display& display) {
75 AppendWindowTreeData(base::MakeUnique<WindowTreeData>(kSquareSize)); 84 AppendWindowTreeData(base::MakeUnique<WindowTreeData>(kSquareSize));
76 InitWindowTreeData(std::move(window_tree_host)); 85 InitWindowTreeData(std::move(window_tree_host));
77 } 86 }
(...skipping 28 matching lines...) Expand all
106 const std::vector<gfx::Rect>& additional_client_areas) {} 115 const std::vector<gfx::Rect>& additional_client_areas) {}
107 116
108 bool MusDemoInternal::IsWindowActive(aura::Window* window) { 117 bool MusDemoInternal::IsWindowActive(aura::Window* window) {
109 return false; 118 return false;
110 } 119 }
111 120
112 void MusDemoInternal::OnWmDeactivateWindow(aura::Window* window) {} 121 void MusDemoInternal::OnWmDeactivateWindow(aura::Window* window) {}
113 122
114 } // namespace demo 123 } // namespace demo
115 } // namespace ui 124 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698