| 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_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_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 14 matching lines...) Expand all Loading... |
| 25 class GURL; | 25 class GURL; |
| 26 class SkBitmap; | 26 class SkBitmap; |
| 27 class WebContentsImpl; | 27 class WebContentsImpl; |
| 28 class WebKeyboardEvent; | 28 class WebKeyboardEvent; |
| 29 struct NativeWebKeyboardEvent; | 29 struct NativeWebKeyboardEvent; |
| 30 struct ViewHostMsg_CreateWindow_Params; | 30 struct ViewHostMsg_CreateWindow_Params; |
| 31 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; | 31 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
| 32 struct ViewHostMsg_FrameNavigate_Params; | 32 struct ViewHostMsg_FrameNavigate_Params; |
| 33 struct WebDropData; | 33 struct WebDropData; |
| 34 struct WebMenuItem; | 34 struct WebMenuItem; |
| 35 |
| 36 namespace webkit_glue { |
| 35 struct WebPreferences; | 37 struct WebPreferences; |
| 38 } |
| 36 | 39 |
| 37 namespace base { | 40 namespace base { |
| 38 class ListValue; | 41 class ListValue; |
| 39 class TimeTicks; | 42 class TimeTicks; |
| 40 } | 43 } |
| 41 | 44 |
| 42 namespace gfx { | 45 namespace gfx { |
| 43 class Point; | 46 class Point; |
| 44 class Rect; | 47 class Rect; |
| 45 class Size; | 48 class Size; |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 bool is_reload, | 344 bool is_reload, |
| 342 IPC::Message* reply_msg) {} | 345 IPC::Message* reply_msg) {} |
| 343 | 346 |
| 344 // Return a dummy RendererPreferences object that will be used by the renderer | 347 // Return a dummy RendererPreferences object that will be used by the renderer |
| 345 // associated with the owning RenderViewHost. | 348 // associated with the owning RenderViewHost. |
| 346 virtual content::RendererPreferences GetRendererPrefs( | 349 virtual content::RendererPreferences GetRendererPrefs( |
| 347 content::BrowserContext* browser_context) const = 0; | 350 content::BrowserContext* browser_context) const = 0; |
| 348 | 351 |
| 349 // Returns a WebPreferences object that will be used by the renderer | 352 // Returns a WebPreferences object that will be used by the renderer |
| 350 // associated with the owning render view host. | 353 // associated with the owning render view host. |
| 351 virtual WebPreferences GetWebkitPrefs(); | 354 virtual webkit_glue::WebPreferences GetWebkitPrefs(); |
| 352 | 355 |
| 353 // Notification the user has made a gesture while focus was on the | 356 // Notification the user has made a gesture while focus was on the |
| 354 // page. This is used to avoid uninitiated user downloads (aka carpet | 357 // page. This is used to avoid uninitiated user downloads (aka carpet |
| 355 // bombing), see DownloadRequestLimiter for details. | 358 // bombing), see DownloadRequestLimiter for details. |
| 356 virtual void OnUserGesture() {} | 359 virtual void OnUserGesture() {} |
| 357 | 360 |
| 358 // Notification from the renderer host that blocked UI event occurred. | 361 // Notification from the renderer host that blocked UI event occurred. |
| 359 // This happens when there are tab-modal dialogs. In this case, the | 362 // This happens when there are tab-modal dialogs. In this case, the |
| 360 // notification is needed to let us draw attention to the dialog (i.e. | 363 // notification is needed to let us draw attention to the dialog (i.e. |
| 361 // refocus on the modal dialog, flash title etc). | 364 // refocus on the modal dialog, flash title etc). |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 // Notification that the view has lost the mouse lock. | 435 // Notification that the view has lost the mouse lock. |
| 433 virtual void LostMouseLock() {} | 436 virtual void LostMouseLock() {} |
| 434 | 437 |
| 435 protected: | 438 protected: |
| 436 virtual ~RenderViewHostDelegate() {} | 439 virtual ~RenderViewHostDelegate() {} |
| 437 }; | 440 }; |
| 438 | 441 |
| 439 } // namespace content | 442 } // namespace content |
| 440 | 443 |
| 441 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 444 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |