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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 8704005: Add autoresize capability to chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 } 1330 }
1331 1331
1332 void RenderViewHost::DisableScrollbarsForThreshold(const gfx::Size& size) { 1332 void RenderViewHost::DisableScrollbarsForThreshold(const gfx::Size& size) {
1333 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size)); 1333 Send(new ViewMsg_DisableScrollbarsForSmallWindows(routing_id(), size));
1334 } 1334 }
1335 1335
1336 void RenderViewHost::EnablePreferredSizeMode() { 1336 void RenderViewHost::EnablePreferredSizeMode() {
1337 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id())); 1337 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id()));
1338 } 1338 }
1339 1339
1340 void RenderViewHost::EnableAutoResize(const gfx::Size& min_size,
1341 const gfx::Size& max_size) {
1342 Send(new ViewMsg_EnableAutoResize(routing_id(), min_size, max_size));
1343 }
1344
1340 void RenderViewHost::ExecuteCustomContextMenuCommand( 1345 void RenderViewHost::ExecuteCustomContextMenuCommand(
1341 int action, const webkit_glue::CustomContextMenuContext& context) { 1346 int action, const webkit_glue::CustomContextMenuContext& context) {
1342 Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action)); 1347 Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action));
1343 } 1348 }
1344 1349
1345 void RenderViewHost::NotifyContextMenuClosed( 1350 void RenderViewHost::NotifyContextMenuClosed(
1346 const webkit_glue::CustomContextMenuContext& context) { 1351 const webkit_glue::CustomContextMenuContext& context) {
1347 Send(new ViewMsg_ContextMenuClosed(routing_id(), context)); 1352 Send(new ViewMsg_ContextMenuClosed(routing_id(), context));
1348 } 1353 }
1349 1354
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 1506
1502 void RenderViewHost::OnWebUISend(const GURL& source_url, 1507 void RenderViewHost::OnWebUISend(const GURL& source_url,
1503 const std::string& name, 1508 const std::string& name,
1504 const base::ListValue& args) { 1509 const base::ListValue& args) {
1505 delegate_->WebUISend(this, source_url, name, args); 1510 delegate_->WebUISend(this, source_url, name, args);
1506 } 1511 }
1507 1512
1508 void RenderViewHost::ClearPowerSaveBlockers() { 1513 void RenderViewHost::ClearPowerSaveBlockers() {
1509 STLDeleteValues(&power_save_blockers_); 1514 STLDeleteValues(&power_save_blockers_);
1510 } 1515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698