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

Side by Side Diff: ui/aura/test/test_window_delegate.h

Issue 211733003: Move GetCursor() method from WindowDelegate to its own delegate interface CursorDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 // Sets the return value for CanFocus(). Default is true. 41 // Sets the return value for CanFocus(). Default is true.
42 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } 42 void set_can_focus(bool can_focus) { can_focus_ = can_focus; }
43 43
44 // Overridden from WindowDelegate: 44 // Overridden from WindowDelegate:
45 virtual gfx::Size GetMinimumSize() const OVERRIDE; 45 virtual gfx::Size GetMinimumSize() const OVERRIDE;
46 virtual gfx::Size GetMaximumSize() const OVERRIDE; 46 virtual gfx::Size GetMaximumSize() const OVERRIDE;
47 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 47 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
48 const gfx::Rect& new_bounds) OVERRIDE; 48 const gfx::Rect& new_bounds) OVERRIDE;
49 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
50 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 49 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
51 virtual bool ShouldDescendIntoChildForEventHandling( 50 virtual bool ShouldDescendIntoChildForEventHandling(
52 Window* child, 51 Window* child,
53 const gfx::Point& location) OVERRIDE; 52 const gfx::Point& location) OVERRIDE;
54 virtual bool CanFocus() OVERRIDE; 53 virtual bool CanFocus() OVERRIDE;
55 virtual void OnCaptureLost() OVERRIDE; 54 virtual void OnCaptureLost() OVERRIDE;
56 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 55 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
57 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 56 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
58 virtual void OnWindowDestroying(Window* window) OVERRIDE; 57 virtual void OnWindowDestroying(Window* window) OVERRIDE;
59 virtual void OnWindowDestroyed(Window* window) OVERRIDE; 58 virtual void OnWindowDestroyed(Window* window) OVERRIDE;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 int key_release_count_; 143 int key_release_count_;
145 int gesture_count_; 144 int gesture_count_;
146 145
147 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); 146 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate);
148 }; 147 };
149 148
150 } // namespace test 149 } // namespace test
151 } // namespace aura 150 } // namespace aura
152 151
153 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 152 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698