| 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 16 matching lines...) Expand all Loading... |
| 27 class CursorWindowDelegate : public aura::WindowDelegate { | 27 class CursorWindowDelegate : public aura::WindowDelegate { |
| 28 public: | 28 public: |
| 29 CursorWindowDelegate() : is_cursor_compositing_enabled_(false) {} | 29 CursorWindowDelegate() : is_cursor_compositing_enabled_(false) {} |
| 30 virtual ~CursorWindowDelegate() {} | 30 virtual ~CursorWindowDelegate() {} |
| 31 | 31 |
| 32 // aura::WindowDelegate overrides: | 32 // aura::WindowDelegate overrides: |
| 33 virtual gfx::Size GetMinimumSize() const OVERRIDE { return size_; } | 33 virtual gfx::Size GetMinimumSize() const OVERRIDE { return size_; } |
| 34 virtual gfx::Size GetMaximumSize() const OVERRIDE { return size_; } | 34 virtual gfx::Size GetMaximumSize() const OVERRIDE { return size_; } |
| 35 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 35 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 36 const gfx::Rect& new_bounds) OVERRIDE {} | 36 const gfx::Rect& new_bounds) OVERRIDE {} |
| 37 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | |
| 38 return gfx::kNullCursor; | |
| 39 } | |
| 40 virtual int GetNonClientComponent( | 37 virtual int GetNonClientComponent( |
| 41 const gfx::Point& point) const OVERRIDE { | 38 const gfx::Point& point) const OVERRIDE { |
| 42 return HTNOWHERE; | 39 return HTNOWHERE; |
| 43 } | 40 } |
| 44 virtual bool ShouldDescendIntoChildForEventHandling( | 41 virtual bool ShouldDescendIntoChildForEventHandling( |
| 45 aura::Window* child, | 42 aura::Window* child, |
| 46 const gfx::Point& location) OVERRIDE { | 43 const gfx::Point& location) OVERRIDE { |
| 47 return false; | 44 return false; |
| 48 } | 45 } |
| 49 virtual bool CanFocus() OVERRIDE { return false; } | 46 virtual bool CanFocus() OVERRIDE { return false; } |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 if (cursor_window_) { | 252 if (cursor_window_) { |
| 256 cursor_window_->SetBounds(gfx::Rect(delegate_->size())); | 253 cursor_window_->SetBounds(gfx::Rect(delegate_->size())); |
| 257 cursor_window_->SchedulePaintInRect( | 254 cursor_window_->SchedulePaintInRect( |
| 258 gfx::Rect(cursor_window_->bounds().size())); | 255 gfx::Rect(cursor_window_->bounds().size())); |
| 259 UpdateLocation(); | 256 UpdateLocation(); |
| 260 } | 257 } |
| 261 } | 258 } |
| 262 | 259 |
| 263 } // namespace internal | 260 } // namespace internal |
| 264 } // namespace ash | 261 } // namespace ash |
| OLD | NEW |