| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/display/cursor_window_controller.h" | 5 #include "ash/display/cursor_window_controller.h" |
| 6 | 6 |
| 7 #include "ash/display/display_controller.h" | 7 #include "ash/display/display_controller.h" |
| 8 #include "ash/display/mirror_window_controller.h" | 8 #include "ash/display/mirror_window_controller.h" |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class CursorWindowDelegate : public aura::WindowDelegate { | 26 class CursorWindowDelegate : public aura::WindowDelegate { |
| 27 public: | 27 public: |
| 28 CursorWindowDelegate() : is_cursor_compositing_enabled_(false) {} | 28 CursorWindowDelegate() : is_cursor_compositing_enabled_(false) {} |
| 29 ~CursorWindowDelegate() override {} | 29 ~CursorWindowDelegate() override {} |
| 30 | 30 |
| 31 // aura::WindowDelegate overrides: | 31 // aura::WindowDelegate overrides: |
| 32 gfx::Size GetMinimumSize() const override { return size_; } | 32 gfx::Size GetMinimumSize() const override { return size_; } |
| 33 gfx::Size GetMaximumSize() const override { return size_; } | 33 gfx::Size GetMaximumSize() const override { return size_; } |
| 34 void OnBoundsChanged(const gfx::Rect& old_bounds, | 34 void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 35 const gfx::Rect& new_bounds) override {} | 35 const gfx::Rect& new_bounds) override {} |
| 36 ui::TextInputClient* GetFocusedTextInputClient() override { return nullptr; } |
| 36 gfx::NativeCursor GetCursor(const gfx::Point& point) override { | 37 gfx::NativeCursor GetCursor(const gfx::Point& point) override { |
| 37 return gfx::kNullCursor; | 38 return gfx::kNullCursor; |
| 38 } | 39 } |
| 39 int GetNonClientComponent(const gfx::Point& point) const override { | 40 int GetNonClientComponent(const gfx::Point& point) const override { |
| 40 return HTNOWHERE; | 41 return HTNOWHERE; |
| 41 } | 42 } |
| 42 bool ShouldDescendIntoChildForEventHandling( | 43 bool ShouldDescendIntoChildForEventHandling( |
| 43 aura::Window* child, | 44 aura::Window* child, |
| 44 const gfx::Point& location) override { | 45 const gfx::Point& location) override { |
| 45 return false; | 46 return false; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 delegate_->SetCursorImage(rotated, display_); | 259 delegate_->SetCursorImage(rotated, display_); |
| 259 if (cursor_window_) { | 260 if (cursor_window_) { |
| 260 cursor_window_->SetBounds(gfx::Rect(delegate_->size())); | 261 cursor_window_->SetBounds(gfx::Rect(delegate_->size())); |
| 261 cursor_window_->SchedulePaintInRect( | 262 cursor_window_->SchedulePaintInRect( |
| 262 gfx::Rect(cursor_window_->bounds().size())); | 263 gfx::Rect(cursor_window_->bounds().size())); |
| 263 UpdateLocation(); | 264 UpdateLocation(); |
| 264 } | 265 } |
| 265 } | 266 } |
| 266 | 267 |
| 267 } // namespace ash | 268 } // namespace ash |
| OLD | NEW |