| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // This is called right after creation with the WebFrame for this RenderFrame. | 90 // This is called right after creation with the WebFrame for this RenderFrame. |
| 91 void SetWebFrame(blink::WebFrame* web_frame); | 91 void SetWebFrame(blink::WebFrame* web_frame); |
| 92 | 92 |
| 93 // Notification from RenderView. | 93 // Notification from RenderView. |
| 94 virtual void OnStop(); | 94 virtual void OnStop(); |
| 95 | 95 |
| 96 // Start/Stop loading notifications. | 96 // Start/Stop loading notifications. |
| 97 // TODO(nasko): Those are page-level methods at this time and come from | 97 // TODO(nasko): Those are page-level methods at this time and come from |
| 98 // WebViewClient. We should move them to be WebFrameClient calls and put | 98 // WebViewClient. We should move them to be WebFrameClient calls and put |
| 99 // logic in the browser side to balance starts/stops. | 99 // logic in the browser side to balance starts/stops. |
| 100 void didStartLoading(); | 100 virtual void didStartLoading(bool to_different_document); |
| 101 void didStopLoading(); | 101 virtual void didStopLoading(); |
| 102 virtual void didChangeLoadProgress(double load_progress); |
| 102 | 103 |
| 103 #if defined(ENABLE_PLUGINS) | 104 #if defined(ENABLE_PLUGINS) |
| 104 // Notification that a PPAPI plugin has been created. | 105 // Notification that a PPAPI plugin has been created. |
| 105 void PepperPluginCreated(RendererPpapiHost* host); | 106 void PepperPluginCreated(RendererPpapiHost* host); |
| 106 | 107 |
| 107 // Notifies that |instance| has changed the cursor. | 108 // Notifies that |instance| has changed the cursor. |
| 108 // This will update the cursor appearance if it is currently over the plugin | 109 // This will update the cursor appearance if it is currently over the plugin |
| 109 // instance. | 110 // instance. |
| 110 void PepperDidChangeCursor(PepperPluginInstanceImpl* instance, | 111 void PepperDidChangeCursor(PepperPluginInstanceImpl* instance, |
| 111 const blink::WebCursorInfo& cursor); | 112 const blink::WebCursorInfo& cursor); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 const base::string16& selection_text, | 365 const base::string16& selection_text, |
| 365 size_t selection_text_offset, | 366 size_t selection_text_offset, |
| 366 const gfx::Range& selection_range, | 367 const gfx::Range& selection_range, |
| 367 const ContextMenuParams& params); | 368 const ContextMenuParams& params); |
| 368 | 369 |
| 369 // Stores the WebFrame we are associated with. | 370 // Stores the WebFrame we are associated with. |
| 370 blink::WebFrame* frame_; | 371 blink::WebFrame* frame_; |
| 371 | 372 |
| 372 base::WeakPtr<RenderViewImpl> render_view_; | 373 base::WeakPtr<RenderViewImpl> render_view_; |
| 373 int routing_id_; | 374 int routing_id_; |
| 375 bool is_loading_; |
| 374 bool is_swapped_out_; | 376 bool is_swapped_out_; |
| 375 bool is_detaching_; | 377 bool is_detaching_; |
| 376 | 378 |
| 377 #if defined(ENABLE_PLUGINS) | 379 #if defined(ENABLE_PLUGINS) |
| 378 // Current text input composition text. Empty if no composition is in | 380 // Current text input composition text. Empty if no composition is in |
| 379 // progress. | 381 // progress. |
| 380 base::string16 pepper_composition_text_; | 382 base::string16 pepper_composition_text_; |
| 381 #endif | 383 #endif |
| 382 | 384 |
| 383 RendererWebCookieJarImpl cookie_jar_; | 385 RendererWebCookieJarImpl cookie_jar_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 399 // always respond properly to the request, so we don't have to worry so | 401 // always respond properly to the request, so we don't have to worry so |
| 400 // much about leaks. | 402 // much about leaks. |
| 401 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; | 403 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; |
| 402 | 404 |
| 403 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 405 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 404 }; | 406 }; |
| 405 | 407 |
| 406 } // namespace content | 408 } // namespace content |
| 407 | 409 |
| 408 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 410 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |