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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 void SetAccessibilityOtherCallbackForTesting( | 433 void SetAccessibilityOtherCallbackForTesting( |
434 const base::Closure& callback); | 434 const base::Closure& callback); |
435 | 435 |
436 bool is_waiting_for_beforeunload_ack() { | 436 bool is_waiting_for_beforeunload_ack() { |
437 return is_waiting_for_beforeunload_ack_; | 437 return is_waiting_for_beforeunload_ack_; |
438 } | 438 } |
439 | 439 |
440 // Whether the RVH is waiting for the unload ack from the renderer. | 440 // Whether the RVH is waiting for the unload ack from the renderer. |
441 bool IsWaitingForUnloadACK() const; | 441 bool IsWaitingForUnloadACK() const; |
442 | 442 |
| 443 void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 444 size_t start_offset, |
| 445 size_t end_offset); |
| 446 |
443 // Update the FrameTree to use this RenderViewHost's main frame | 447 // Update the FrameTree to use this RenderViewHost's main frame |
444 // RenderFrameHost. Called when the RenderViewHost is committed. | 448 // RenderFrameHost. Called when the RenderViewHost is committed. |
445 // | 449 // |
446 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame | 450 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame |
447 // RenderFrameHost. | 451 // RenderFrameHost. |
448 void AttachToFrameTree(); | 452 void AttachToFrameTree(); |
449 | 453 |
450 // Increases the refcounting on this RVH. This is done by the FrameTree on | 454 // Increases the refcounting on this RVH. This is done by the FrameTree on |
451 // creation of a RenderFrameHost. | 455 // creation of a RenderFrameHost. |
452 void increment_ref_count() { ++frames_ref_count_; } | 456 void increment_ref_count() { ++frames_ref_count_; } |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
645 }; | 649 }; |
646 | 650 |
647 #if defined(COMPILER_MSVC) | 651 #if defined(COMPILER_MSVC) |
648 #pragma warning(pop) | 652 #pragma warning(pop) |
649 #endif | 653 #endif |
650 | 654 |
651 } // namespace content | 655 } // namespace content |
652 | 656 |
653 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |