| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 // Requests the renderer to evaluate an xpath to a frame and insert css | 433 // Requests the renderer to evaluate an xpath to a frame and insert css |
| 434 // into that frame's document. | 434 // into that frame's document. |
| 435 void InsertCSS(const string16& frame_xpath, const std::string& css); | 435 void InsertCSS(const string16& frame_xpath, const std::string& css); |
| 436 | 436 |
| 437 // Tells the renderer not to add scrollbars with height and width below a | 437 // Tells the renderer not to add scrollbars with height and width below a |
| 438 // threshold. | 438 // threshold. |
| 439 void DisableScrollbarsForThreshold(const gfx::Size& size); | 439 void DisableScrollbarsForThreshold(const gfx::Size& size); |
| 440 | 440 |
| 441 // Instructs the RenderView to send back updates to the preferred size. | 441 // Instructs the RenderView to send back updates to the preferred size. |
| 442 void EnablePreferredSizeMode(int flags); | 442 void EnablePreferredSizeMode(); |
| 443 | 443 |
| 444 // Executes custom context menu action that was provided from WebKit. | 444 // Executes custom context menu action that was provided from WebKit. |
| 445 void ExecuteCustomContextMenuCommand( | 445 void ExecuteCustomContextMenuCommand( |
| 446 int action, const webkit_glue::CustomContextMenuContext& context); | 446 int action, const webkit_glue::CustomContextMenuContext& context); |
| 447 | 447 |
| 448 // Let the renderer know that the menu has been closed. | 448 // Let the renderer know that the menu has been closed. |
| 449 void NotifyContextMenuClosed( | 449 void NotifyContextMenuClosed( |
| 450 const webkit_glue::CustomContextMenuContext& context); | 450 const webkit_glue::CustomContextMenuContext& context); |
| 451 | 451 |
| 452 // Copies the image at location x, y to the clipboard (if there indeed is an | 452 // Copies the image at location x, y to the clipboard (if there indeed is an |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 674 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 675 PowerSaveBlockerMap power_save_blockers_; | 675 PowerSaveBlockerMap power_save_blockers_; |
| 676 | 676 |
| 677 // A list of observers that filter messages. Weak references. | 677 // A list of observers that filter messages. Weak references. |
| 678 ObserverList<RenderViewHostObserver> observers_; | 678 ObserverList<RenderViewHostObserver> observers_; |
| 679 | 679 |
| 680 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 680 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 681 }; | 681 }; |
| 682 | 682 |
| 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |