| 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  |     7  | 
|     8 #include <stdint.h> |     8 #include <stdint.h> | 
|     9  |     9  | 
|    10 #include <map> |    10 #include <map> | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|    28 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" |    28 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" | 
|    29 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |    29 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" | 
|    30 #include "chrome/browser/ui/profile_chooser_constants.h" |    30 #include "chrome/browser/ui/profile_chooser_constants.h" | 
|    31 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" |    31 #include "chrome/browser/ui/search/search_tab_helper_delegate.h" | 
|    32 #include "chrome/browser/ui/signin_view_controller.h" |    32 #include "chrome/browser/ui/signin_view_controller.h" | 
|    33 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |    33 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 
|    34 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |    34 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 
|    35 #include "components/content_settings/core/common/content_settings.h" |    35 #include "components/content_settings/core/common/content_settings.h" | 
|    36 #include "components/content_settings/core/common/content_settings_types.h" |    36 #include "components/content_settings/core/common/content_settings_types.h" | 
|    37 #include "components/prefs/pref_change_registrar.h" |    37 #include "components/prefs/pref_change_registrar.h" | 
|    38 #include "components/prefs/pref_member.h" |  | 
|    39 #include "components/sessions/core/session_id.h" |    38 #include "components/sessions/core/session_id.h" | 
|    40 #include "components/toolbar/toolbar_model.h" |    39 #include "components/toolbar/toolbar_model.h" | 
|    41 #include "components/translate/content/browser/content_translate_driver.h" |    40 #include "components/translate/content/browser/content_translate_driver.h" | 
|    42 #include "components/zoom/zoom_observer.h" |    41 #include "components/zoom/zoom_observer.h" | 
|    43 #include "content/public/browser/notification_observer.h" |    42 #include "content/public/browser/notification_observer.h" | 
|    44 #include "content/public/browser/notification_registrar.h" |    43 #include "content/public/browser/notification_registrar.h" | 
|    45 #include "content/public/browser/page_navigator.h" |    44 #include "content/public/browser/page_navigator.h" | 
|    46 #include "content/public/browser/web_contents_delegate.h" |    45 #include "content/public/browser/web_contents_delegate.h" | 
|    47 #include "content/public/common/page_zoom.h" |    46 #include "content/public/common/page_zoom.h" | 
|    48 #include "ui/base/page_transition_types.h" |    47 #include "ui/base/page_transition_types.h" | 
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   380   // this varies during the lifetime of the browser. For example, if the window |   379   // this varies during the lifetime of the browser. For example, if the window | 
|   381   // is fullscreen this may return a different value. If you only care about |   380   // is fullscreen this may return a different value. If you only care about | 
|   382   // whether or not it's possible for the browser to support a particular |   381   // whether or not it's possible for the browser to support a particular | 
|   383   // feature use |CanSupportWindowFeature|. |   382   // feature use |CanSupportWindowFeature|. | 
|   384   bool SupportsWindowFeature(WindowFeature feature) const; |   383   bool SupportsWindowFeature(WindowFeature feature) const; | 
|   385  |   384  | 
|   386   // Returns true if the Browser can support the specified feature. See comment |   385   // Returns true if the Browser can support the specified feature. See comment | 
|   387   // in |SupportsWindowFeature| for details on this. |   386   // in |SupportsWindowFeature| for details on this. | 
|   388   bool CanSupportWindowFeature(WindowFeature feature) const; |   387   bool CanSupportWindowFeature(WindowFeature feature) const; | 
|   389  |   388  | 
|   390   // TODO(port): port these, and re-merge the two function declaration lists. |  | 
|   391   // Page-related commands. |  | 
|   392   void ToggleEncodingAutoDetect(); |  | 
|   393   void OverrideEncoding(int encoding_id); |  | 
|   394  |  | 
|   395   // Show various bits of UI |   389   // Show various bits of UI | 
|   396   void OpenFile(); |   390   void OpenFile(); | 
|   397  |   391  | 
|   398   void UpdateDownloadShelfVisibility(bool visible); |   392   void UpdateDownloadShelfVisibility(bool visible); | 
|   399  |   393  | 
|   400   ///////////////////////////////////////////////////////////////////////////// |   394   ///////////////////////////////////////////////////////////////////////////// | 
|   401  |   395  | 
|   402   // Called by chrome::Navigate() when a navigation has occurred in a tab in |   396   // Called by chrome::Navigate() when a navigation has occurred in a tab in | 
|   403   // this Browser. Updates the UI for the start of this navigation. |   397   // this Browser. Updates the UI for the start of this navigation. | 
|   404   void UpdateUIForNavigationInTab(content::WebContents* contents, |   398   void UpdateUIForNavigationInTab(content::WebContents* contents, | 
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   956  |   950  | 
|   957   std::unique_ptr<ChromeBubbleManager> bubble_manager_; |   951   std::unique_ptr<ChromeBubbleManager> bubble_manager_; | 
|   958  |   952  | 
|   959   // The Find Bar. This may be NULL if there is no Find Bar, and if it is |   953   // The Find Bar. This may be NULL if there is no Find Bar, and if it is | 
|   960   // non-NULL, it may or may not be visible. |   954   // non-NULL, it may or may not be visible. | 
|   961   std::unique_ptr<FindBarController> find_bar_controller_; |   955   std::unique_ptr<FindBarController> find_bar_controller_; | 
|   962  |   956  | 
|   963   // Dialog box used for opening and saving files. |   957   // Dialog box used for opening and saving files. | 
|   964   scoped_refptr<ui::SelectFileDialog> select_file_dialog_; |   958   scoped_refptr<ui::SelectFileDialog> select_file_dialog_; | 
|   965  |   959  | 
|   966   // Keep track of the encoding auto detect pref. |  | 
|   967   BooleanPrefMember encoding_auto_detect_; |  | 
|   968  |  | 
|   969   // Helper which implements the ContentSettingBubbleModel interface. |   960   // Helper which implements the ContentSettingBubbleModel interface. | 
|   970   std::unique_ptr<BrowserContentSettingBubbleModelDelegate> |   961   std::unique_ptr<BrowserContentSettingBubbleModelDelegate> | 
|   971       content_setting_bubble_model_delegate_; |   962       content_setting_bubble_model_delegate_; | 
|   972  |   963  | 
|   973   // Helper which implements the ToolbarModelDelegate interface. |   964   // Helper which implements the ToolbarModelDelegate interface. | 
|   974   std::unique_ptr<BrowserToolbarModelDelegate> toolbar_model_delegate_; |   965   std::unique_ptr<BrowserToolbarModelDelegate> toolbar_model_delegate_; | 
|   975  |   966  | 
|   976   // A delegate that handles the details of updating the "active" |   967   // A delegate that handles the details of updating the "active" | 
|   977   // |search_model_| state with the tab's state. |   968   // |search_model_| state with the tab's state. | 
|   978   std::unique_ptr<SearchDelegate> search_delegate_; |   969   std::unique_ptr<SearchDelegate> search_delegate_; | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|  1009   // The following factory is used for chrome update coalescing. |  1000   // The following factory is used for chrome update coalescing. | 
|  1010   base::WeakPtrFactory<Browser> chrome_updater_factory_; |  1001   base::WeakPtrFactory<Browser> chrome_updater_factory_; | 
|  1011  |  1002  | 
|  1012   // The following factory is used to close the frame at a later time. |  1003   // The following factory is used to close the frame at a later time. | 
|  1013   base::WeakPtrFactory<Browser> weak_factory_; |  1004   base::WeakPtrFactory<Browser> weak_factory_; | 
|  1014  |  1005  | 
|  1015   DISALLOW_COPY_AND_ASSIGN(Browser); |  1006   DISALLOW_COPY_AND_ASSIGN(Browser); | 
|  1016 }; |  1007 }; | 
|  1017  |  1008  | 
|  1018 #endif  // CHROME_BROWSER_UI_BROWSER_H_ |  1009 #endif  // CHROME_BROWSER_UI_BROWSER_H_ | 
| OLD | NEW |