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

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

Issue 11366215: Prevents windows in chromeos from resizing bigger than their maximum size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DesktopNativeWidgetAura Created 8 years 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 14 matching lines...) Expand all
25 // Returns a TestWindowDelegate that delete itself when 25 // Returns a TestWindowDelegate that delete itself when
26 // the associated window is destroyed. 26 // the associated window is destroyed.
27 static TestWindowDelegate* CreateSelfDestroyingDelegate(); 27 static TestWindowDelegate* CreateSelfDestroyingDelegate();
28 28
29 void set_window_component(int window_component) { 29 void set_window_component(int window_component) {
30 window_component_ = window_component; 30 window_component_ = window_component;
31 } 31 }
32 32
33 // Overridden from WindowDelegate: 33 // Overridden from WindowDelegate:
34 virtual gfx::Size GetMinimumSize() const OVERRIDE; 34 virtual gfx::Size GetMinimumSize() const OVERRIDE;
35 virtual gfx::Size GetMaximumSize() const OVERRIDE;
35 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 36 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
36 const gfx::Rect& new_bounds) OVERRIDE; 37 const gfx::Rect& new_bounds) OVERRIDE;
37 virtual void OnFocus(Window* old_focused_window) OVERRIDE; 38 virtual void OnFocus(Window* old_focused_window) OVERRIDE;
38 virtual void OnBlur() OVERRIDE; 39 virtual void OnBlur() OVERRIDE;
39 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 40 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
40 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 41 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
41 virtual bool ShouldDescendIntoChildForEventHandling( 42 virtual bool ShouldDescendIntoChildForEventHandling(
42 Window* child, 43 Window* child,
43 const gfx::Point& location) OVERRIDE; 44 const gfx::Point& location) OVERRIDE;
44 virtual bool CanFocus() OVERRIDE; 45 virtual bool CanFocus() OVERRIDE;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 int key_press_count_; 132 int key_press_count_;
132 int key_release_count_; 133 int key_release_count_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate); 135 DISALLOW_COPY_AND_ASSIGN(EventCountDelegate);
135 }; 136 };
136 137
137 } // namespace test 138 } // namespace test
138 } // namespace aura 139 } // namespace aura
139 140
140 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 141 #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