| 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_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 virtual void HandleMouseUp() {} | 366 virtual void HandleMouseUp() {} |
| 367 virtual void HandleMouseActivate() {} | 367 virtual void HandleMouseActivate() {} |
| 368 | 368 |
| 369 // Called when a file selection is to be done. | 369 // Called when a file selection is to be done. |
| 370 virtual void RunFileChooser( | 370 virtual void RunFileChooser( |
| 371 RenderViewHost* render_view_host, | 371 RenderViewHost* render_view_host, |
| 372 const ViewHostMsg_RunFileChooser_Params& params) {} | 372 const ViewHostMsg_RunFileChooser_Params& params) {} |
| 373 | 373 |
| 374 // Notification that the page wants to go into or out of fullscreen mode. | 374 // Notification that the page wants to go into or out of fullscreen mode. |
| 375 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 375 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 376 virtual bool IsFullscreenForCurrentTab() const; |
| 376 | 377 |
| 377 // The contents' preferred size changed. | 378 // The contents' preferred size changed. |
| 378 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 379 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 379 | 380 |
| 380 // Notification message from HTML UI. | 381 // Notification message from HTML UI. |
| 381 virtual void WebUISend(RenderViewHost* render_view_host, | 382 virtual void WebUISend(RenderViewHost* render_view_host, |
| 382 const GURL& source_url, | 383 const GURL& source_url, |
| 383 const std::string& name, | 384 const std::string& name, |
| 384 const base::ListValue& args) {} | 385 const base::ListValue& args) {} |
| 385 protected: | 386 protected: |
| 386 virtual ~RenderViewHostDelegate() {} | 387 virtual ~RenderViewHostDelegate() {} |
| 387 }; | 388 }; |
| 388 | 389 |
| 389 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |