| OLD | NEW |
| 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 #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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // threshold. | 451 // threshold. |
| 452 void DisableScrollbarsForThreshold(const gfx::Size& size); | 452 void DisableScrollbarsForThreshold(const gfx::Size& size); |
| 453 | 453 |
| 454 // Instructs the RenderView to send back updates to the preferred size. | 454 // Instructs the RenderView to send back updates to the preferred size. |
| 455 void EnablePreferredSizeMode(); | 455 void EnablePreferredSizeMode(); |
| 456 | 456 |
| 457 // Instructs the RenderView to automatically resize and send back updates | 457 // Instructs the RenderView to automatically resize and send back updates |
| 458 // for the new size. | 458 // for the new size. |
| 459 void EnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); | 459 void EnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
| 460 | 460 |
| 461 // Turns off auto-resize and gives a new size that the view should be. |
| 462 void DisableAutoResize(const gfx::Size& new_size); |
| 463 |
| 461 // Executes custom context menu action that was provided from WebKit. | 464 // Executes custom context menu action that was provided from WebKit. |
| 462 void ExecuteCustomContextMenuCommand( | 465 void ExecuteCustomContextMenuCommand( |
| 463 int action, const content::CustomContextMenuContext& context); | 466 int action, const content::CustomContextMenuContext& context); |
| 464 | 467 |
| 465 // Let the renderer know that the menu has been closed. | 468 // Let the renderer know that the menu has been closed. |
| 466 void NotifyContextMenuClosed( | 469 void NotifyContextMenuClosed( |
| 467 const content::CustomContextMenuContext& context); | 470 const content::CustomContextMenuContext& context); |
| 468 | 471 |
| 469 // Copies the image at location x, y to the clipboard (if there indeed is an | 472 // Copies the image at location x, y to the clipboard (if there indeed is an |
| 470 // image at that location). | 473 // image at that location). |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; | 711 typedef std::map<int64, PowerSaveBlocker*> PowerSaveBlockerMap; |
| 709 PowerSaveBlockerMap power_save_blockers_; | 712 PowerSaveBlockerMap power_save_blockers_; |
| 710 | 713 |
| 711 // A list of observers that filter messages. Weak references. | 714 // A list of observers that filter messages. Weak references. |
| 712 ObserverList<content::RenderViewHostObserver> observers_; | 715 ObserverList<content::RenderViewHostObserver> observers_; |
| 713 | 716 |
| 714 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 717 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 715 }; | 718 }; |
| 716 | 719 |
| 717 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 720 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |