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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 6356004: If the user selects text in the current tab, and types CTRL-F,... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; } 536 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; }
537 #endif 537 #endif
538 538
539 // Checks that the given renderer can request |url|, if not it sets it to an 539 // Checks that the given renderer can request |url|, if not it sets it to an
540 // empty url. 540 // empty url.
541 static void FilterURL(ChildProcessSecurityPolicy* policy, 541 static void FilterURL(ChildProcessSecurityPolicy* policy,
542 int renderer_id, 542 int renderer_id,
543 GURL* url); 543 GURL* url);
544 544
545 // Gets the selected text in this view, or the empty string.
546 std::string selected_text();
547
545 protected: 548 protected:
546 // RenderWidgetHost protected overrides. 549 // RenderWidgetHost protected overrides.
547 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 550 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
548 bool* is_keyboard_shortcut); 551 bool* is_keyboard_shortcut);
549 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); 552 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
550 virtual void OnUserGesture(); 553 virtual void OnUserGesture();
551 virtual void NotifyRendererUnresponsive(); 554 virtual void NotifyRendererUnresponsive();
552 virtual void NotifyRendererResponsive(); 555 virtual void NotifyRendererResponsive();
553 virtual void OnMsgFocusedNodeChanged(bool is_editable_node); 556 virtual void OnMsgFocusedNodeChanged(bool is_editable_node);
554 virtual void OnMsgFocus(); 557 virtual void OnMsgFocus();
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 787
785 // Whether the accessibility tree should be saved, for unit testing. 788 // Whether the accessibility tree should be saved, for unit testing.
786 bool save_accessibility_tree_for_testing_; 789 bool save_accessibility_tree_for_testing_;
787 790
788 // The most recently received accessibility tree - for unit testing only. 791 // The most recently received accessibility tree - for unit testing only.
789 webkit_glue::WebAccessibility accessibility_tree_; 792 webkit_glue::WebAccessibility accessibility_tree_;
790 793
791 // The termination status of the last render view that terminated. 794 // The termination status of the last render view that terminated.
792 base::TerminationStatus render_view_termination_status_; 795 base::TerminationStatus render_view_termination_status_;
793 796
797 // The most recently selected text.
798 std::string selected_text_;
799
794 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 800 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
795 }; 801 };
796 802
797 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 803 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698