| 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 static void RegisterProtocolHandlerHelper(TabContents* tab, | 684 static void RegisterProtocolHandlerHelper(TabContents* tab, |
| 685 const std::string& protocol, | 685 const std::string& protocol, |
| 686 const GURL& url, | 686 const GURL& url, |
| 687 const string16& title); | 687 const string16& title); |
| 688 | 688 |
| 689 // Helper function to register an intent handler. | 689 // Helper function to register an intent handler. |
| 690 static void RegisterIntentHandlerHelper(TabContents* tab, | 690 static void RegisterIntentHandlerHelper(TabContents* tab, |
| 691 const string16& action, | 691 const string16& action, |
| 692 const string16& type, | 692 const string16& type, |
| 693 const string16& href, | 693 const string16& href, |
| 694 const string16& title); | 694 const string16& title, |
| 695 const string16& disposition); |
| 695 | 696 |
| 696 // Helper function to handle find results. | 697 // Helper function to handle find results. |
| 697 static void FindReplyHelper(TabContents* tab, | 698 static void FindReplyHelper(TabContents* tab, |
| 698 int request_id, | 699 int request_id, |
| 699 int number_of_matches, | 700 int number_of_matches, |
| 700 const gfx::Rect& selection_rect, | 701 const gfx::Rect& selection_rect, |
| 701 int active_match_ordinal, | 702 int active_match_ordinal, |
| 702 bool final_update); | 703 bool final_update); |
| 703 | 704 |
| 704 // Helper function to handle crashed plugin notifications. | 705 // Helper function to handle crashed plugin notifications. |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 virtual bool IsFullscreenForTab(const TabContents* tab) const OVERRIDE; | 999 virtual bool IsFullscreenForTab(const TabContents* tab) const OVERRIDE; |
| 999 virtual void JSOutOfMemory(TabContents* tab) OVERRIDE; | 1000 virtual void JSOutOfMemory(TabContents* tab) OVERRIDE; |
| 1000 virtual void RegisterProtocolHandler(TabContents* tab, | 1001 virtual void RegisterProtocolHandler(TabContents* tab, |
| 1001 const std::string& protocol, | 1002 const std::string& protocol, |
| 1002 const GURL& url, | 1003 const GURL& url, |
| 1003 const string16& title) OVERRIDE; | 1004 const string16& title) OVERRIDE; |
| 1004 virtual void RegisterIntentHandler(TabContents* tab, | 1005 virtual void RegisterIntentHandler(TabContents* tab, |
| 1005 const string16& action, | 1006 const string16& action, |
| 1006 const string16& type, | 1007 const string16& type, |
| 1007 const string16& href, | 1008 const string16& href, |
| 1008 const string16& title) OVERRIDE; | 1009 const string16& title, |
| 1010 const string16& disposition) OVERRIDE; |
| 1009 virtual void WebIntentDispatch(TabContents* tab, | 1011 virtual void WebIntentDispatch(TabContents* tab, |
| 1010 int routing_id, | 1012 int routing_id, |
| 1011 const webkit_glue::WebIntentData& intent, | 1013 const webkit_glue::WebIntentData& intent, |
| 1012 int intent_id) OVERRIDE; | 1014 int intent_id) OVERRIDE; |
| 1013 virtual void UpdatePreferredSize(TabContents* source, | 1015 virtual void UpdatePreferredSize(TabContents* source, |
| 1014 const gfx::Size& pref_size) OVERRIDE; | 1016 const gfx::Size& pref_size) OVERRIDE; |
| 1015 | 1017 |
| 1016 virtual void FindReply(TabContents* tab, | 1018 virtual void FindReply(TabContents* tab, |
| 1017 int request_id, | 1019 int request_id, |
| 1018 int number_of_matches, | 1020 int number_of_matches, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 | 1457 |
| 1456 MouseLockState mouse_lock_state_; | 1458 MouseLockState mouse_lock_state_; |
| 1457 | 1459 |
| 1458 // True if the browser window has been shown at least once. | 1460 // True if the browser window has been shown at least once. |
| 1459 bool window_has_shown_; | 1461 bool window_has_shown_; |
| 1460 | 1462 |
| 1461 DISALLOW_COPY_AND_ASSIGN(Browser); | 1463 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1462 }; | 1464 }; |
| 1463 | 1465 |
| 1464 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1466 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |