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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 7828025: Handle the ViewHostMsg_FindReply message which is sent by content(renderer) via the TabContentsDe... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/ui/browser.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 const string16& title); 677 const string16& title);
678 678
679 // Helper function to handle WebIntent notifications. 679 // Helper function to handle WebIntent notifications.
680 static void WebIntentDispatchHelper(TabContents* tab, 680 static void WebIntentDispatchHelper(TabContents* tab,
681 int routing_id, 681 int routing_id,
682 const string16& action, 682 const string16& action,
683 const string16& type, 683 const string16& type,
684 const string16& data, 684 const string16& data,
685 int intent_id); 685 int intent_id);
686 686
687 // Helper function to handle find results.
688 static void FindReplyHelper(TabContents* tab,
689 int request_id,
690 int number_of_matches,
691 const gfx::Rect& selection_rect,
692 int active_match_ordinal,
693 bool final_update);
694
687 // Calls ExecuteCommandWithDisposition with the given disposition. 695 // Calls ExecuteCommandWithDisposition with the given disposition.
688 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); 696 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition);
689 697
690 // Executes a command if it's enabled. 698 // Executes a command if it's enabled.
691 // Returns true if the command is executed. 699 // Returns true if the command is executed.
692 bool ExecuteCommandIfEnabled(int id); 700 bool ExecuteCommandIfEnabled(int id);
693 701
694 // Returns true if |command_id| is a reserved command whose keyboard shortcuts 702 // Returns true if |command_id| is a reserved command whose keyboard shortcuts
695 // should not be sent to the renderer or |event| was triggered by a key that 703 // should not be sent to the renderer or |event| was triggered by a key that
696 // we never want to send to the renderer. 704 // we never want to send to the renderer.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 const string16& type, 961 const string16& type,
954 const string16& href, 962 const string16& href,
955 const string16& title) OVERRIDE; 963 const string16& title) OVERRIDE;
956 virtual void WebIntentDispatch(TabContents* tab, 964 virtual void WebIntentDispatch(TabContents* tab,
957 int routing_id, 965 int routing_id,
958 const string16& action, 966 const string16& action,
959 const string16& type, 967 const string16& type,
960 const string16& data, 968 const string16& data,
961 int intent_id) OVERRIDE; 969 int intent_id) OVERRIDE;
962 970
971 virtual void FindReply(TabContents* tab,
972 int request_id,
973 int number_of_matches,
974 const gfx::Rect& selection_rect,
975 int active_match_ordinal,
976 bool final_update) OVERRIDE;
977
963 // Overridden from TabContentsWrapperDelegate: 978 // Overridden from TabContentsWrapperDelegate:
964 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, 979 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source,
965 int32 page_id) OVERRIDE; 980 int32 page_id) OVERRIDE;
966 virtual void OnInstallApplication( 981 virtual void OnInstallApplication(
967 TabContentsWrapper* source, 982 TabContentsWrapper* source,
968 const WebApplicationInfo& app_info) OVERRIDE; 983 const WebApplicationInfo& app_info) OVERRIDE;
969 984
970 // Note that the caller is responsible for deleting |old_tab_contents|. 985 // Note that the caller is responsible for deleting |old_tab_contents|.
971 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, 986 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents,
972 TabContentsWrapper* new_tab_contents); 987 TabContentsWrapper* new_tab_contents);
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 // Tab to notify when the browser exits fullscreen mode. 1402 // Tab to notify when the browser exits fullscreen mode.
1388 TabContentsWrapper* fullscreened_tab_; 1403 TabContentsWrapper* fullscreened_tab_;
1389 1404
1390 // True if the current tab is in fullscreen mode. 1405 // True if the current tab is in fullscreen mode.
1391 bool tab_caused_fullscreen_; 1406 bool tab_caused_fullscreen_;
1392 1407
1393 DISALLOW_COPY_AND_ASSIGN(Browser); 1408 DISALLOW_COPY_AND_ASSIGN(Browser);
1394 }; 1409 };
1395 1410
1396 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1411 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698