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

Side by Side Diff: ash/display/cursor_window_controller.cc

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement in all subclasses. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | ui/aura/window.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 virtual ~CursorWindowDelegate() {} 29 virtual ~CursorWindowDelegate() {}
30 30
31 // aura::WindowDelegate overrides: 31 // aura::WindowDelegate overrides:
32 virtual gfx::Size GetMinimumSize() const OVERRIDE { return size_; } 32 virtual gfx::Size GetMinimumSize() const OVERRIDE { return size_; }
33 virtual gfx::Size GetMaximumSize() const OVERRIDE { return size_; } 33 virtual gfx::Size GetMaximumSize() const OVERRIDE { return size_; }
34 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 34 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
35 const gfx::Rect& new_bounds) OVERRIDE {} 35 const gfx::Rect& new_bounds) OVERRIDE {}
36 virtual void OnPropertyChanged(const void* key, intptr_t old) OVERRIDE {}
36 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { 37 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE {
37 return gfx::kNullCursor; 38 return gfx::kNullCursor;
38 } 39 }
39 virtual int GetNonClientComponent( 40 virtual int GetNonClientComponent(
40 const gfx::Point& point) const OVERRIDE { 41 const gfx::Point& point) const OVERRIDE {
41 return HTNOWHERE; 42 return HTNOWHERE;
42 } 43 }
43 virtual bool ShouldDescendIntoChildForEventHandling( 44 virtual bool ShouldDescendIntoChildForEventHandling(
44 aura::Window* child, 45 aura::Window* child,
45 const gfx::Point& location) OVERRIDE { 46 const gfx::Point& location) OVERRIDE {
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698