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

Side by Side Diff: ui/aura/demo/demo_main.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
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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Trivial WindowDelegate implementation that draws a colored background. 32 // Trivial WindowDelegate implementation that draws a colored background.
33 class DemoWindowDelegate : public aura::WindowDelegate { 33 class DemoWindowDelegate : public aura::WindowDelegate {
34 public: 34 public:
35 explicit DemoWindowDelegate(SkColor color) : color_(color) {} 35 explicit DemoWindowDelegate(SkColor color) : color_(color) {}
36 36
37 // Overridden from WindowDelegate: 37 // Overridden from WindowDelegate:
38 virtual gfx::Size GetMinimumSize() const OVERRIDE { 38 virtual gfx::Size GetMinimumSize() const OVERRIDE {
39 return gfx::Size(); 39 return gfx::Size();
40 } 40 }
41
42 virtual gfx::Size GetMaximumSize() const OVERRIDE {
43 return gfx::Size();
44 }
45
41 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 46 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
42 const gfx::Rect& new_bounds) OVERRIDE {} 47 const gfx::Rect& new_bounds) OVERRIDE {}
43 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {} 48 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {}
44 virtual void OnBlur() OVERRIDE {} 49 virtual void OnBlur() OVERRIDE {}
45 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { 50 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE {
46 return gfx::kNullCursor; 51 return gfx::kNullCursor;
47 } 52 }
48 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { 53 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE {
49 return HTCAPTION; 54 return HTCAPTION;
50 } 55 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 175
171 // The exit manager is in charge of calling the dtors of singleton objects. 176 // The exit manager is in charge of calling the dtors of singleton objects.
172 base::AtExitManager exit_manager; 177 base::AtExitManager exit_manager;
173 178
174 ui::RegisterPathProvider(); 179 ui::RegisterPathProvider();
175 icu_util::Initialize(); 180 icu_util::Initialize();
176 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); 181 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
177 182
178 return DemoMain(); 183 return DemoMain();
179 } 184 }
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/aura/test/test_window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698