| OLD | NEW |
| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 bool MusDemo::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) { | 131 bool MusDemo::OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) { |
| 132 return true; | 132 return true; |
| 133 } | 133 } |
| 134 | 134 |
| 135 bool MusDemo::OnWmSetProperty(aura::Window* window, | 135 bool MusDemo::OnWmSetProperty(aura::Window* window, |
| 136 const std::string& name, | 136 const std::string& name, |
| 137 std::unique_ptr<std::vector<uint8_t>>* new_data) { | 137 std::unique_ptr<std::vector<uint8_t>>* new_data) { |
| 138 return true; | 138 return true; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void MusDemo::OnWmSetCanFocus(aura::Window* window, bool can_focus) {} |
| 142 |
| 141 aura::Window* MusDemo::OnWmCreateTopLevelWindow( | 143 aura::Window* MusDemo::OnWmCreateTopLevelWindow( |
| 142 mojom::WindowType window_type, | 144 mojom::WindowType window_type, |
| 143 std::map<std::string, std::vector<uint8_t>>* properties) { | 145 std::map<std::string, std::vector<uint8_t>>* properties) { |
| 144 NOTREACHED(); | 146 NOTREACHED(); |
| 145 return nullptr; | 147 return nullptr; |
| 146 } | 148 } |
| 147 | 149 |
| 148 void MusDemo::OnWmClientJankinessChanged( | 150 void MusDemo::OnWmClientJankinessChanged( |
| 149 const std::set<aura::Window*>& client_windows, | 151 const std::set<aura::Window*>& client_windows, |
| 150 bool janky) { | 152 bool janky) { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 gfx::ImageSkiaRep image_skia_rep(bitmap, 1); | 244 gfx::ImageSkiaRep image_skia_rep(bitmap, 1); |
| 243 gfx::ImageSkia image_skia(image_skia_rep); | 245 gfx::ImageSkia image_skia(image_skia_rep); |
| 244 gfx::Image image(image_skia); | 246 gfx::Image image(image_skia); |
| 245 | 247 |
| 246 window_delegate_->SetImage(image); | 248 window_delegate_->SetImage(image); |
| 247 bitmap_window_->SchedulePaintInRect(bitmap_window_->bounds()); | 249 bitmap_window_->SchedulePaintInRect(bitmap_window_->bounds()); |
| 248 } | 250 } |
| 249 | 251 |
| 250 } // namespace demo | 252 } // namespace demo |
| 251 } // namespace aura | 253 } // namespace aura |
| OLD | NEW |