OLD | NEW |
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 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 | 1326 |
1327 void RenderViewHost::InsertCSS(const string16& frame_xpath, | 1327 void RenderViewHost::InsertCSS(const string16& frame_xpath, |
1328 const std::string& css) { | 1328 const std::string& css) { |
1329 Send(new ViewMsg_CSSInsertRequest(routing_id(), frame_xpath, css)); | 1329 Send(new ViewMsg_CSSInsertRequest(routing_id(), frame_xpath, css)); |
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(int flags) { | 1336 void RenderViewHost::EnablePreferredSizeMode() { |
1337 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id(), flags)); | 1337 Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id())); |
1338 } | 1338 } |
1339 | 1339 |
1340 void RenderViewHost::ExecuteCustomContextMenuCommand( | 1340 void RenderViewHost::ExecuteCustomContextMenuCommand( |
1341 int action, const webkit_glue::CustomContextMenuContext& context) { | 1341 int action, const webkit_glue::CustomContextMenuContext& context) { |
1342 Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action)); | 1342 Send(new ViewMsg_CustomContextMenuAction(routing_id(), context, action)); |
1343 } | 1343 } |
1344 | 1344 |
1345 void RenderViewHost::NotifyContextMenuClosed( | 1345 void RenderViewHost::NotifyContextMenuClosed( |
1346 const webkit_glue::CustomContextMenuContext& context) { | 1346 const webkit_glue::CustomContextMenuContext& context) { |
1347 Send(new ViewMsg_ContextMenuClosed(routing_id(), context)); | 1347 Send(new ViewMsg_ContextMenuClosed(routing_id(), context)); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 | 1499 |
1500 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1500 void RenderViewHost::OnWebUISend(const GURL& source_url, |
1501 const std::string& name, | 1501 const std::string& name, |
1502 const base::ListValue& args) { | 1502 const base::ListValue& args) { |
1503 delegate_->WebUISend(this, source_url, name, args); | 1503 delegate_->WebUISend(this, source_url, name, args); |
1504 } | 1504 } |
1505 | 1505 |
1506 void RenderViewHost::ClearPowerSaveBlockers() { | 1506 void RenderViewHost::ClearPowerSaveBlockers() { |
1507 STLDeleteValues(&power_save_blockers_); | 1507 STLDeleteValues(&power_save_blockers_); |
1508 } | 1508 } |
OLD | NEW |