OLD | NEW |
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 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 // set new values if they have not been set already. This method gets called | 676 // set new values if they have not been set already. This method gets called |
677 // during First Run. | 677 // during First Run. |
678 static void SetNewHomePagePrefs(PrefService* prefs); | 678 static void SetNewHomePagePrefs(PrefService* prefs); |
679 | 679 |
680 static void RegisterPrefs(PrefService* prefs); | 680 static void RegisterPrefs(PrefService* prefs); |
681 static void RegisterUserPrefs(PrefService* prefs); | 681 static void RegisterUserPrefs(PrefService* prefs); |
682 | 682 |
683 // Helper function to run unload listeners on a WebContents. | 683 // Helper function to run unload listeners on a WebContents. |
684 static bool RunUnloadEventsHelper(content::WebContents* contents); | 684 static bool RunUnloadEventsHelper(content::WebContents* contents); |
685 | 685 |
686 // Helper function to display the file selection dialog. | |
687 static void RunFileChooserHelper( | |
688 content::WebContents* tab, const content::FileChooserParams& params); | |
689 | |
690 // Helper function to enumerate a directory. | |
691 static void EnumerateDirectoryHelper(content::WebContents* tab, | |
692 int request_id, | |
693 const FilePath& path); | |
694 | |
695 // Helper function to handle JS out of memory notifications | 686 // Helper function to handle JS out of memory notifications |
696 static void JSOutOfMemoryHelper(content::WebContents* tab); | 687 static void JSOutOfMemoryHelper(content::WebContents* tab); |
697 | 688 |
698 // Helper function to register a protocol handler. | 689 // Helper function to register a protocol handler. |
699 static void RegisterProtocolHandlerHelper(content::WebContents* tab, | 690 static void RegisterProtocolHandlerHelper(content::WebContents* tab, |
700 const std::string& protocol, | 691 const std::string& protocol, |
701 const GURL& url, | 692 const GURL& url, |
702 const string16& title); | 693 const string16& title); |
703 | 694 |
704 // Helper function to register an intent handler. | 695 // Helper function to register an intent handler. |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 bool window_has_shown_; | 1454 bool window_has_shown_; |
1464 | 1455 |
1465 // Currently open color chooser. Non-NULL after OpenColorChooser is called and | 1456 // Currently open color chooser. Non-NULL after OpenColorChooser is called and |
1466 // before DidEndColorChooser is called. | 1457 // before DidEndColorChooser is called. |
1467 scoped_ptr<content::ColorChooser> color_chooser_; | 1458 scoped_ptr<content::ColorChooser> color_chooser_; |
1468 | 1459 |
1469 DISALLOW_COPY_AND_ASSIGN(Browser); | 1460 DISALLOW_COPY_AND_ASSIGN(Browser); |
1470 }; | 1461 }; |
1471 | 1462 |
1472 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1463 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |