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

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

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/test/test_window_delegate.h ('k') | ui/aura/window_delegate.h » ('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 #include "ui/aura/test/test_window_delegate.h" 5 #include "ui/aura/test/test_window_delegate.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/events/event.h" 9 #include "ui/base/events/event.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 19 matching lines...) Expand all
30 TestWindowDelegate* TestWindowDelegate::CreateSelfDestroyingDelegate() { 30 TestWindowDelegate* TestWindowDelegate::CreateSelfDestroyingDelegate() {
31 TestWindowDelegate* delegate = new TestWindowDelegate; 31 TestWindowDelegate* delegate = new TestWindowDelegate;
32 delegate->delete_on_destroyed_ = true; 32 delegate->delete_on_destroyed_ = true;
33 return delegate; 33 return delegate;
34 } 34 }
35 35
36 gfx::Size TestWindowDelegate::GetMinimumSize() const { 36 gfx::Size TestWindowDelegate::GetMinimumSize() const {
37 return gfx::Size(); 37 return gfx::Size();
38 } 38 }
39 39
40 gfx::Size TestWindowDelegate::GetMaximumSize() const {
41 return gfx::Size();
42 }
43
40 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, 44 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
41 const gfx::Rect& new_bounds) { 45 const gfx::Rect& new_bounds) {
42 } 46 }
43 47
44 void TestWindowDelegate::OnFocus(Window* old_focused_window) { 48 void TestWindowDelegate::OnFocus(Window* old_focused_window) {
45 } 49 }
46 50
47 void TestWindowDelegate::OnBlur() { 51 void TestWindowDelegate::OnBlur() {
48 } 52 }
49 53
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 std::string result = StringPrintf("%d %d", 228 std::string result = StringPrintf("%d %d",
225 key_press_count_, 229 key_press_count_,
226 key_release_count_); 230 key_release_count_);
227 key_press_count_ = 0; 231 key_press_count_ = 0;
228 key_release_count_ = 0; 232 key_release_count_ = 0;
229 return result; 233 return result;
230 } 234 }
231 235
232 } // namespace test 236 } // namespace test
233 } // namespace aura 237 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698