OLD | NEW |
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 const string16& title); | 668 const string16& title); |
669 | 669 |
670 // Helper function to handle WebIntent notifications. | 670 // Helper function to handle WebIntent notifications. |
671 static void WebIntentDispatchHelper(TabContents* tab, | 671 static void WebIntentDispatchHelper(TabContents* tab, |
672 int routing_id, | 672 int routing_id, |
673 const string16& action, | 673 const string16& action, |
674 const string16& type, | 674 const string16& type, |
675 const string16& data, | 675 const string16& data, |
676 int intent_id); | 676 int intent_id); |
677 | 677 |
| 678 // Helper function to handle find results. |
| 679 static void FindReplyHelper(TabContents* tab, |
| 680 int request_id, |
| 681 int number_of_matches, |
| 682 const gfx::Rect& selection_rect, |
| 683 int active_match_ordinal, |
| 684 bool final_update); |
| 685 |
678 // Calls ExecuteCommandWithDisposition with the given disposition. | 686 // Calls ExecuteCommandWithDisposition with the given disposition. |
679 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); | 687 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition); |
680 | 688 |
681 // Executes a command if it's enabled. | 689 // Executes a command if it's enabled. |
682 // Returns true if the command is executed. | 690 // Returns true if the command is executed. |
683 bool ExecuteCommandIfEnabled(int id); | 691 bool ExecuteCommandIfEnabled(int id); |
684 | 692 |
685 // Returns true if |command_id| is a reserved command whose keyboard shortcuts | 693 // Returns true if |command_id| is a reserved command whose keyboard shortcuts |
686 // should not be sent to the renderer or |event| was triggered by a key that | 694 // should not be sent to the renderer or |event| was triggered by a key that |
687 // we never want to send to the renderer. | 695 // we never want to send to the renderer. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 const string16& type, | 952 const string16& type, |
945 const string16& href, | 953 const string16& href, |
946 const string16& title) OVERRIDE; | 954 const string16& title) OVERRIDE; |
947 virtual void WebIntentDispatch(TabContents* tab, | 955 virtual void WebIntentDispatch(TabContents* tab, |
948 int routing_id, | 956 int routing_id, |
949 const string16& action, | 957 const string16& action, |
950 const string16& type, | 958 const string16& type, |
951 const string16& data, | 959 const string16& data, |
952 int intent_id) OVERRIDE; | 960 int intent_id) OVERRIDE; |
953 | 961 |
| 962 virtual void FindReply(TabContents* tab, |
| 963 int request_id, |
| 964 int number_of_matches, |
| 965 const gfx::Rect& selection_rect, |
| 966 int active_match_ordinal, |
| 967 bool final_update) OVERRIDE; |
| 968 |
954 // Overridden from TabContentsWrapperDelegate: | 969 // Overridden from TabContentsWrapperDelegate: |
955 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, | 970 virtual void OnDidGetApplicationInfo(TabContentsWrapper* source, |
956 int32 page_id) OVERRIDE; | 971 int32 page_id) OVERRIDE; |
957 virtual void OnInstallApplication( | 972 virtual void OnInstallApplication( |
958 TabContentsWrapper* source, | 973 TabContentsWrapper* source, |
959 const WebApplicationInfo& app_info) OVERRIDE; | 974 const WebApplicationInfo& app_info) OVERRIDE; |
960 | 975 |
961 // Note that the caller is responsible for deleting |old_tab_contents|. | 976 // Note that the caller is responsible for deleting |old_tab_contents|. |
962 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, | 977 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, |
963 TabContentsWrapper* new_tab_contents); | 978 TabContentsWrapper* new_tab_contents); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 // Tab to notify when the browser exits fullscreen mode. | 1390 // Tab to notify when the browser exits fullscreen mode. |
1376 TabContentsWrapper* fullscreened_tab_; | 1391 TabContentsWrapper* fullscreened_tab_; |
1377 | 1392 |
1378 // True if the current tab is in fullscreen mode. | 1393 // True if the current tab is in fullscreen mode. |
1379 bool tab_caused_fullscreen_; | 1394 bool tab_caused_fullscreen_; |
1380 | 1395 |
1381 DISALLOW_COPY_AND_ASSIGN(Browser); | 1396 DISALLOW_COPY_AND_ASSIGN(Browser); |
1382 }; | 1397 }; |
1383 | 1398 |
1384 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1399 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |