| 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_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 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "content/common/mouse_lock.h" |
| 16 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
| 17 #include "net/base/load_states.h" | 18 #include "net/base/load_states.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 19 #include "ui/base/javascript_message_type.h" | 20 #include "ui/base/javascript_message_type.h" |
| 20 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
| 21 | 22 |
| 22 class GURL; | 23 class GURL; |
| 23 class SkBitmap; | 24 class SkBitmap; |
| 24 class WebContentsImpl; | 25 class WebContentsImpl; |
| 25 class WebKeyboardEvent; | 26 class WebKeyboardEvent; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 321 |
| 321 // The contents' preferred size changed. | 322 // The contents' preferred size changed. |
| 322 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 323 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 323 | 324 |
| 324 // The contents auto-resized and the container should match it. | 325 // The contents auto-resized and the container should match it. |
| 325 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 326 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
| 326 | 327 |
| 327 // Requests to lock the mouse. Once the request is approved or rejected, | 328 // Requests to lock the mouse. Once the request is approved or rejected, |
| 328 // GotResponseToLockMouseRequest() will be called on the requesting render | 329 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 329 // view host. | 330 // view host. |
| 330 virtual void RequestToLockMouse(bool user_gesture) {} | 331 virtual void RequestToLockMouse( |
| 332 MouseLockSource lock_source, |
| 333 MouseUnlockSource previous_unlock_source) { |
| 334 } |
| 331 | 335 |
| 332 // Notification that the view has lost the mouse lock. | 336 // Notification that the view has lost the mouse lock. |
| 333 virtual void LostMouseLock() {} | 337 virtual void LostMouseLock() {} |
| 334 | 338 |
| 335 // The page is trying to open a new page (e.g. a popup window). The window | 339 // The page is trying to open a new page (e.g. a popup window). The window |
| 336 // should be created associated with the given route, but it should not be | 340 // should be created associated with the given route, but it should not be |
| 337 // shown yet. That should happen in response to ShowCreatedWindow. | 341 // shown yet. That should happen in response to ShowCreatedWindow. |
| 338 // |params.window_container_type| describes the type of RenderViewHost | 342 // |params.window_container_type| describes the type of RenderViewHost |
| 339 // container that is requested -- in particular, the window.open call may | 343 // container that is requested -- in particular, the window.open call may |
| 340 // have specified 'background' and 'persistent' in the feature string. | 344 // have specified 'background' and 'persistent' in the feature string. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // provided in the supplied params. | 385 // provided in the supplied params. |
| 382 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} | 386 virtual void ShowContextMenu(const content::ContextMenuParams& params) {} |
| 383 | 387 |
| 384 protected: | 388 protected: |
| 385 virtual ~RenderViewHostDelegate() {} | 389 virtual ~RenderViewHostDelegate() {} |
| 386 }; | 390 }; |
| 387 | 391 |
| 388 } // namespace content | 392 } // namespace content |
| 389 | 393 |
| 390 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 394 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |