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

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 comments Created 8 years, 1 month 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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 const gfx::Display& old_display) { 1333 const gfx::Display& old_display) {
1334 } 1334 }
1335 1335
1336 //////////////////////////////////////////////////////////////////////////////// 1336 ////////////////////////////////////////////////////////////////////////////////
1337 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: 1337 // RenderWidgetHostViewAura, aura::WindowDelegate implementation:
1338 1338
1339 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { 1339 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const {
1340 return gfx::Size(); 1340 return gfx::Size();
1341 } 1341 }
1342 1342
1343 gfx::Size RenderWidgetHostViewAura::GetMaximumSize() const {
1344 return gfx::Size();
1345 }
1346
1343 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, 1347 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
1344 const gfx::Rect& new_bounds) { 1348 const gfx::Rect& new_bounds) {
1345 // We care about this only in fullscreen mode, where there is no 1349 // We care about this only in fullscreen mode, where there is no
1346 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by 1350 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by
1347 // WebContentsViewAura in other cases. 1351 // WebContentsViewAura in other cases.
1348 if (is_fullscreen_) 1352 if (is_fullscreen_)
1349 SetSize(new_bounds.size()); 1353 SetSize(new_bounds.size());
1350 } 1354 }
1351 1355
1352 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) { 1356 void RenderWidgetHostViewAura::OnFocus(aura::Window* old_focused_window) {
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 RenderWidgetHost* widget) { 1983 RenderWidgetHost* widget) {
1980 return new RenderWidgetHostViewAura(widget); 1984 return new RenderWidgetHostViewAura(widget);
1981 } 1985 }
1982 1986
1983 // static 1987 // static
1984 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 1988 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
1985 GetScreenInfoForWindow(results, NULL); 1989 GetScreenInfoForWindow(results, NULL);
1986 } 1990 }
1987 1991
1988 } // namespace content 1992 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698