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

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

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
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 23 matching lines...) Expand all
34 minimum_size_ = minimum_size; 34 minimum_size_ = minimum_size;
35 } 35 }
36 36
37 void set_maximum_size(const gfx::Size& maximum_size) { 37 void set_maximum_size(const gfx::Size& maximum_size) {
38 maximum_size_ = maximum_size; 38 maximum_size_ = maximum_size;
39 } 39 }
40 40
41 // Overridden from WindowDelegate: 41 // Overridden from WindowDelegate:
42 virtual gfx::Size GetMinimumSize() const OVERRIDE; 42 virtual gfx::Size GetMinimumSize() const OVERRIDE;
43 virtual gfx::Size GetMaximumSize() const OVERRIDE; 43 virtual gfx::Size GetMaximumSize() const OVERRIDE;
44 virtual void SetHostTransitionBounds(const gfx::Rect& bounds) OVERRIDE;
44 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 45 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
45 const gfx::Rect& new_bounds) OVERRIDE; 46 const gfx::Rect& new_bounds) OVERRIDE;
46 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 47 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
47 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 48 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
48 virtual bool ShouldDescendIntoChildForEventHandling( 49 virtual bool ShouldDescendIntoChildForEventHandling(
49 Window* child, 50 Window* child,
50 const gfx::Point& location) OVERRIDE; 51 const gfx::Point& location) OVERRIDE;
51 virtual bool CanFocus() OVERRIDE; 52 virtual bool CanFocus() OVERRIDE;
52 virtual void OnCaptureLost() OVERRIDE; 53 virtual void OnCaptureLost() OVERRIDE;
53 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 54 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
54 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 55 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
56 virtual void OnWindowHidingAnimationCompleted() OVERRIDE;
55 virtual void OnWindowDestroying() OVERRIDE; 57 virtual void OnWindowDestroying() OVERRIDE;
56 virtual void OnWindowDestroyed() OVERRIDE; 58 virtual void OnWindowDestroyed() OVERRIDE;
57 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; 59 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE;
58 virtual bool HasHitTestMask() const OVERRIDE; 60 virtual bool HasHitTestMask() const OVERRIDE;
59 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; 61 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
60 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; 62 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE;
61 63
62 private: 64 private:
63 int window_component_; 65 int window_component_;
64 bool delete_on_destroyed_; 66 bool delete_on_destroyed_;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int key_press_count_; 136 int key_press_count_;
135 int key_release_count_; 137 int key_release_count_;
136 138
137 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); 139 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate);
138 }; 140 };
139 141
140 } // namespace test 142 } // namespace test
141 } // namespace aura 143 } // namespace aura
142 144
143 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 145 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698