Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/browser.h

Issue 3201008: Revert 57094 - Making window.focus()/blur() work only when there is a user ge... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/blocked_popup_container.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
707 virtual void LoadingStateChanged(TabContents* source); 706 virtual void LoadingStateChanged(TabContents* source);
708 virtual void CloseContents(TabContents* source); 707 virtual void CloseContents(TabContents* source);
709 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 708 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
710 virtual void DetachContents(TabContents* source); 709 virtual void DetachContents(TabContents* source);
711 virtual bool IsPopup(const TabContents* source) const; 710 virtual bool IsPopup(const TabContents* source) const;
712 virtual bool CanReloadContents(TabContents* source) const; 711 virtual bool CanReloadContents(TabContents* source) const;
713 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 712 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
714 virtual void URLStarredChanged(TabContents* source, bool starred); 713 virtual void URLStarredChanged(TabContents* source, bool starred);
715 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 714 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
716 virtual void ContentsMouseEvent( 715 virtual void ContentsMouseEvent(
717 TabContents* source, const gfx::Point& location, bool motion); 716 TabContents* source, const gfx::Point& location, bool motion);
718 virtual void ContentsZoomChange(bool zoom_in); 717 virtual void ContentsZoomChange(bool zoom_in);
719 virtual void OnContentSettingsChange(TabContents* source); 718 virtual void OnContentSettingsChange(TabContents* source);
720 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); 719 virtual void SetTabContentBlocked(TabContents* contents, bool blocked);
721 virtual void TabContentsFocused(TabContents* tab_content); 720 virtual void TabContentsFocused(TabContents* tab_content);
722 virtual bool TakeFocus(bool reverse); 721 virtual bool TakeFocus(bool reverse);
722 virtual void Activate();
723 virtual void Deactivate();
723 virtual bool IsApplication() const; 724 virtual bool IsApplication() const;
724 virtual void ConvertContentsToApplication(TabContents* source); 725 virtual void ConvertContentsToApplication(TabContents* source);
725 virtual bool ShouldDisplayURLField(); 726 virtual bool ShouldDisplayURLField();
726 virtual gfx::Rect GetRootWindowResizerRect() const; 727 virtual gfx::Rect GetRootWindowResizerRect() const;
727 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 728 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
728 gfx::NativeWindow parent_window); 729 gfx::NativeWindow parent_window);
729 virtual void BeforeUnloadFired(TabContents* source, 730 virtual void BeforeUnloadFired(TabContents* source,
730 bool proceed, 731 bool proceed,
731 bool* proceed_to_fire_unload); 732 bool* proceed_to_fire_unload);
732 virtual void SetFocusToLocationBar(bool select_all); 733 virtual void SetFocusToLocationBar(bool select_all);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 mutable BooleanPrefMember use_vertical_tabs_; 1069 mutable BooleanPrefMember use_vertical_tabs_;
1069 1070
1070 // The profile's tab restore service. The service is owned by the profile, 1071 // The profile's tab restore service. The service is owned by the profile,
1071 // and we install ourselves as an observer. 1072 // and we install ourselves as an observer.
1072 TabRestoreService* tab_restore_service_; 1073 TabRestoreService* tab_restore_service_;
1073 1074
1074 DISALLOW_COPY_AND_ASSIGN(Browser); 1075 DISALLOW_COPY_AND_ASSIGN(Browser);
1075 }; 1076 };
1076 1077
1077 #endif // CHROME_BROWSER_BROWSER_H_ 1078 #endif // CHROME_BROWSER_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/blocked_popup_container.h ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698