OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 WindowOpenDisposition disposition, | 696 WindowOpenDisposition disposition, |
697 PageTransition::Type transition); | 697 PageTransition::Type transition); |
698 virtual void NavigationStateChanged(const TabContents* source, | 698 virtual void NavigationStateChanged(const TabContents* source, |
699 unsigned changed_flags); | 699 unsigned changed_flags); |
700 virtual void AddNewContents(TabContents* source, | 700 virtual void AddNewContents(TabContents* source, |
701 TabContents* new_contents, | 701 TabContents* new_contents, |
702 WindowOpenDisposition disposition, | 702 WindowOpenDisposition disposition, |
703 const gfx::Rect& initial_pos, | 703 const gfx::Rect& initial_pos, |
704 bool user_gesture); | 704 bool user_gesture); |
705 virtual void ActivateContents(TabContents* contents); | 705 virtual void ActivateContents(TabContents* contents); |
| 706 virtual void DeactivateContents(TabContents* contents); |
706 virtual void LoadingStateChanged(TabContents* source); | 707 virtual void LoadingStateChanged(TabContents* source); |
707 virtual void CloseContents(TabContents* source); | 708 virtual void CloseContents(TabContents* source); |
708 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 709 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
709 virtual void DetachContents(TabContents* source); | 710 virtual void DetachContents(TabContents* source); |
710 virtual bool IsPopup(const TabContents* source) const; | 711 virtual bool IsPopup(const TabContents* source) const; |
711 virtual bool CanReloadContents(TabContents* source) const; | 712 virtual bool CanReloadContents(TabContents* source) const; |
712 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 713 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
713 virtual void URLStarredChanged(TabContents* source, bool starred); | 714 virtual void URLStarredChanged(TabContents* source, bool starred); |
714 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 715 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
715 virtual void ContentsMouseEvent( | 716 virtual void ContentsMouseEvent( |
716 TabContents* source, const gfx::Point& location, bool motion); | 717 TabContents* source, const gfx::Point& location, bool motion); |
717 virtual void ContentsZoomChange(bool zoom_in); | 718 virtual void ContentsZoomChange(bool zoom_in); |
718 virtual void OnContentSettingsChange(TabContents* source); | 719 virtual void OnContentSettingsChange(TabContents* source); |
719 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); | 720 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); |
720 virtual void TabContentsFocused(TabContents* tab_content); | 721 virtual void TabContentsFocused(TabContents* tab_content); |
721 virtual bool TakeFocus(bool reverse); | 722 virtual bool TakeFocus(bool reverse); |
722 virtual void Activate(); | |
723 virtual void Deactivate(); | |
724 virtual bool IsApplication() const; | 723 virtual bool IsApplication() const; |
725 virtual void ConvertContentsToApplication(TabContents* source); | 724 virtual void ConvertContentsToApplication(TabContents* source); |
726 virtual bool ShouldDisplayURLField(); | 725 virtual bool ShouldDisplayURLField(); |
727 virtual gfx::Rect GetRootWindowResizerRect() const; | 726 virtual gfx::Rect GetRootWindowResizerRect() const; |
728 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 727 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
729 gfx::NativeWindow parent_window); | 728 gfx::NativeWindow parent_window); |
730 virtual void BeforeUnloadFired(TabContents* source, | 729 virtual void BeforeUnloadFired(TabContents* source, |
731 bool proceed, | 730 bool proceed, |
732 bool* proceed_to_fire_unload); | 731 bool* proceed_to_fire_unload); |
733 virtual void SetFocusToLocationBar(bool select_all); | 732 virtual void SetFocusToLocationBar(bool select_all); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 mutable BooleanPrefMember use_vertical_tabs_; | 1068 mutable BooleanPrefMember use_vertical_tabs_; |
1070 | 1069 |
1071 // The profile's tab restore service. The service is owned by the profile, | 1070 // The profile's tab restore service. The service is owned by the profile, |
1072 // and we install ourselves as an observer. | 1071 // and we install ourselves as an observer. |
1073 TabRestoreService* tab_restore_service_; | 1072 TabRestoreService* tab_restore_service_; |
1074 | 1073 |
1075 DISALLOW_COPY_AND_ASSIGN(Browser); | 1074 DISALLOW_COPY_AND_ASSIGN(Browser); |
1076 }; | 1075 }; |
1077 | 1076 |
1078 #endif // CHROME_BROWSER_BROWSER_H_ | 1077 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |