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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 const gfx::Display& old_display) { 1326 const gfx::Display& old_display) {
1327 } 1327 }
1328 1328
1329 //////////////////////////////////////////////////////////////////////////////// 1329 ////////////////////////////////////////////////////////////////////////////////
1330 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: 1330 // RenderWidgetHostViewAura, aura::WindowDelegate implementation:
1331 1331
1332 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { 1332 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const {
1333 return gfx::Size(); 1333 return gfx::Size();
1334 } 1334 }
1335 1335
1336 gfx::Size RenderWidgetHostViewAura::GetMaximumSize() const {
1337 return gfx::Size();
1338 }
1339
1336 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, 1340 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
1337 const gfx::Rect& new_bounds) { 1341 const gfx::Rect& new_bounds) {
1338 // We care about this only in fullscreen mode, where there is no 1342 // We care about this only in fullscreen mode, where there is no
1339 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by 1343 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by
1340 // WebContentsViewAura in other cases. 1344 // WebContentsViewAura in other cases.
1341 if (is_fullscreen_) 1345 if (is_fullscreen_)
1342 SetSize(new_bounds.size()); 1346 SetSize(new_bounds.size());
1343 } 1347 }
1344 1348
1345 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) { 1349 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) {
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1989 RenderWidgetHost* widget) { 1993 RenderWidgetHost* widget) {
1990 return new RenderWidgetHostViewAura(widget); 1994 return new RenderWidgetHostViewAura(widget);
1991 } 1995 }
1992 1996
1993 // static 1997 // static
1994 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 1998 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
1995 GetScreenInfoForWindow(results, NULL); 1999 GetScreenInfoForWindow(results, NULL);
1996 } 2000 }
1997 2001
1998 } // namespace content 2002 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698