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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 WindowOpenDisposition disposition, | 697 WindowOpenDisposition disposition, |
698 PageTransition::Type transition); | 698 PageTransition::Type transition); |
699 virtual void NavigationStateChanged(const TabContents* source, | 699 virtual void NavigationStateChanged(const TabContents* source, |
700 unsigned changed_flags); | 700 unsigned changed_flags); |
701 virtual void AddNewContents(TabContents* source, | 701 virtual void AddNewContents(TabContents* source, |
702 TabContents* new_contents, | 702 TabContents* new_contents, |
703 WindowOpenDisposition disposition, | 703 WindowOpenDisposition disposition, |
704 const gfx::Rect& initial_pos, | 704 const gfx::Rect& initial_pos, |
705 bool user_gesture); | 705 bool user_gesture); |
706 virtual void ActivateContents(TabContents* contents); | 706 virtual void ActivateContents(TabContents* contents); |
| 707 virtual void DeactivateContents(TabContents* contents); |
707 virtual void LoadingStateChanged(TabContents* source); | 708 virtual void LoadingStateChanged(TabContents* source); |
708 virtual void CloseContents(TabContents* source); | 709 virtual void CloseContents(TabContents* source); |
709 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); | 710 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); |
710 virtual void DetachContents(TabContents* source); | 711 virtual void DetachContents(TabContents* source); |
711 virtual bool IsPopup(const TabContents* source) const; | 712 virtual bool IsPopup(const TabContents* source) const; |
712 virtual bool CanReloadContents(TabContents* source) const; | 713 virtual bool CanReloadContents(TabContents* source) const; |
713 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); | 714 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); |
714 virtual void URLStarredChanged(TabContents* source, bool starred); | 715 virtual void URLStarredChanged(TabContents* source, bool starred); |
715 virtual void UpdateTargetURL(TabContents* source, const GURL& url); | 716 virtual void UpdateTargetURL(TabContents* source, const GURL& url); |
716 virtual void ContentsMouseEvent( | 717 virtual void ContentsMouseEvent( |
717 TabContents* source, const gfx::Point& location, bool motion); | 718 TabContents* source, const gfx::Point& location, bool motion); |
718 virtual void ContentsZoomChange(bool zoom_in); | 719 virtual void ContentsZoomChange(bool zoom_in); |
719 virtual void OnContentSettingsChange(TabContents* source); | 720 virtual void OnContentSettingsChange(TabContents* source); |
720 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); | 721 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); |
721 virtual void TabContentsFocused(TabContents* tab_content); | 722 virtual void TabContentsFocused(TabContents* tab_content); |
722 virtual bool TakeFocus(bool reverse); | 723 virtual bool TakeFocus(bool reverse); |
723 virtual void Activate(); | |
724 virtual void Deactivate(); | |
725 virtual bool IsApplication() const; | 724 virtual bool IsApplication() const; |
726 virtual void ConvertContentsToApplication(TabContents* source); | 725 virtual void ConvertContentsToApplication(TabContents* source); |
727 virtual bool ShouldDisplayURLField(); | 726 virtual bool ShouldDisplayURLField(); |
728 virtual gfx::Rect GetRootWindowResizerRect() const; | 727 virtual gfx::Rect GetRootWindowResizerRect() const; |
729 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 728 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
730 gfx::NativeWindow parent_window); | 729 gfx::NativeWindow parent_window); |
731 virtual void BeforeUnloadFired(TabContents* source, | 730 virtual void BeforeUnloadFired(TabContents* source, |
732 bool proceed, | 731 bool proceed, |
733 bool* proceed_to_fire_unload); | 732 bool* proceed_to_fire_unload); |
734 virtual void SetFocusToLocationBar(bool select_all); | 733 virtual void SetFocusToLocationBar(bool select_all); |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 mutable BooleanPrefMember use_vertical_tabs_; | 1080 mutable BooleanPrefMember use_vertical_tabs_; |
1082 | 1081 |
1083 // The profile's tab restore service. The service is owned by the profile, | 1082 // The profile's tab restore service. The service is owned by the profile, |
1084 // and we install ourselves as an observer. | 1083 // and we install ourselves as an observer. |
1085 TabRestoreService* tab_restore_service_; | 1084 TabRestoreService* tab_restore_service_; |
1086 | 1085 |
1087 DISALLOW_COPY_AND_ASSIGN(Browser); | 1086 DISALLOW_COPY_AND_ASSIGN(Browser); |
1088 }; | 1087 }; |
1089 | 1088 |
1090 #endif // CHROME_BROWSER_BROWSER_H_ | 1089 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |