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

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

Issue 2657873006: Remove WindowTreeClientDelegate::GetCaptureClient() and WindowTreeClient::GetCaptureClient(). (Closed)
Patch Set: Created 3 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
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 "services/ui/demo/mus_demo.h" 5 #include "services/ui/demo/mus_demo.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "services/service_manager/public/cpp/connector.h" 9 #include "services/service_manager/public/cpp/connector.h"
10 #include "services/service_manager/public/cpp/service_context.h" 10 #include "services/service_manager/public/cpp/service_context.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 void MusDemo::OnLostConnection(aura::WindowTreeClient* client) { 112 void MusDemo::OnLostConnection(aura::WindowTreeClient* client) {
113 root_window_ = nullptr; 113 root_window_ = nullptr;
114 window_tree_client_.reset(); 114 window_tree_client_.reset();
115 timer_.Stop(); 115 timer_.Stop();
116 } 116 }
117 117
118 void MusDemo::OnPointerEventObserved(const PointerEvent& event, 118 void MusDemo::OnPointerEventObserved(const PointerEvent& event,
119 aura::Window* target) {} 119 aura::Window* target) {}
120 120
121 aura::client::CaptureClient* MusDemo::GetCaptureClient() {
122 return capture_client_.get();
123 }
124
125 aura::PropertyConverter* MusDemo::GetPropertyConverter() { 121 aura::PropertyConverter* MusDemo::GetPropertyConverter() {
126 return property_converter_.get(); 122 return property_converter_.get();
127 } 123 }
128 124
129 void MusDemo::SetWindowManagerClient(aura::WindowManagerClient* client) {} 125 void MusDemo::SetWindowManagerClient(aura::WindowManagerClient* client) {}
130 126
131 bool MusDemo::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) { 127 bool MusDemo::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) {
132 return true; 128 return true;
133 } 129 }
134 130
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 gfx::ImageSkiaRep image_skia_rep(bitmap, 1); 238 gfx::ImageSkiaRep image_skia_rep(bitmap, 1);
243 gfx::ImageSkia image_skia(image_skia_rep); 239 gfx::ImageSkia image_skia(image_skia_rep);
244 gfx::Image image(image_skia); 240 gfx::Image image(image_skia);
245 241
246 window_delegate_->SetImage(image); 242 window_delegate_->SetImage(image);
247 bitmap_window_->SchedulePaintInRect(bitmap_window_->bounds()); 243 bitmap_window_->SchedulePaintInRect(bitmap_window_->bounds());
248 } 244 }
249 245
250 } // namespace demo 246 } // namespace demo
251 } // namespace aura 247 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698