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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 442 void EnablePreferredSizeMode(); |
443 | 443 |
| 444 // Instructs the RenderView to automatically resize and send back updates |
| 445 // for the new size. |
| 446 void EnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
| 447 |
444 // Executes custom context menu action that was provided from WebKit. | 448 // Executes custom context menu action that was provided from WebKit. |
445 void ExecuteCustomContextMenuCommand( | 449 void ExecuteCustomContextMenuCommand( |
446 int action, const webkit_glue::CustomContextMenuContext& context); | 450 int action, const webkit_glue::CustomContextMenuContext& context); |
447 | 451 |
448 // Let the renderer know that the menu has been closed. | 452 // Let the renderer know that the menu has been closed. |
449 void NotifyContextMenuClosed( | 453 void NotifyContextMenuClosed( |
450 const webkit_glue::CustomContextMenuContext& context); | 454 const webkit_glue::CustomContextMenuContext& context); |
451 | 455 |
452 // Copies the image at location x, y to the clipboard (if there indeed is an | 456 // Copies the image at location x, y to the clipboard (if there indeed is an |
453 // image at that location). | 457 // image at that location). |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 678 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
675 PowerSaveBlockerMap power_save_blockers_; | 679 PowerSaveBlockerMap power_save_blockers_; |
676 | 680 |
677 // A list of observers that filter messages. Weak references. | 681 // A list of observers that filter messages. Weak references. |
678 ObserverList<RenderViewHostObserver> observers_; | 682 ObserverList<RenderViewHostObserver> observers_; |
679 | 683 |
680 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 684 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
681 }; | 685 }; |
682 | 686 |
683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 687 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |