Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 void SetAccessibilityOtherCallbackForTesting( 431 void SetAccessibilityOtherCallbackForTesting(
432 const base::Closure& callback); 432 const base::Closure& callback);
433 433
434 bool is_waiting_for_beforeunload_ack() { 434 bool is_waiting_for_beforeunload_ack() {
435 return is_waiting_for_beforeunload_ack_; 435 return is_waiting_for_beforeunload_ack_;
436 } 436 }
437 437
438 // Whether the RVH is waiting for the unload ack from the renderer. 438 // Whether the RVH is waiting for the unload ack from the renderer.
439 bool IsWaitingForUnloadACK() const; 439 bool IsWaitingForUnloadACK() const;
440 440
441 void OnTextSurroundingSelectionResponse(const base::string16& contont,
442 unsigned start_offset,
443 unsigned end_offset);
444
441 // Update the FrameTree to use this RenderViewHost's main frame 445 // Update the FrameTree to use this RenderViewHost's main frame
442 // RenderFrameHost. Called when the RenderViewHost is committed. 446 // RenderFrameHost. Called when the RenderViewHost is committed.
443 // 447 //
444 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame 448 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame
445 // RenderFrameHost. 449 // RenderFrameHost.
446 void AttachToFrameTree(); 450 void AttachToFrameTree();
447 451
448 // Increases the refcounting on this RVH. This is done by the FrameTree on 452 // Increases the refcounting on this RVH. This is done by the FrameTree on
449 // creation of a RenderFrameHost. 453 // creation of a RenderFrameHost.
450 void increment_ref_count() { ++frames_ref_count_; } 454 void increment_ref_count() { ++frames_ref_count_; }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 652 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
649 }; 653 };
650 654
651 #if defined(COMPILER_MSVC) 655 #if defined(COMPILER_MSVC)
652 #pragma warning(pop) 656 #pragma warning(pop)
653 #endif 657 #endif
654 658
655 } // namespace content 659 } // namespace content
656 660
657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 661 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698