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

Side by Side Diff: chrome/browser/dom_ui/html_dialog_tab_contents_delegate.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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 9 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
10 10
(...skipping 30 matching lines...) Expand all
41 WindowOpenDisposition disposition, 41 WindowOpenDisposition disposition,
42 PageTransition::Type transition); 42 PageTransition::Type transition);
43 virtual void NavigationStateChanged(const TabContents* source, 43 virtual void NavigationStateChanged(const TabContents* source,
44 unsigned changed_flags); 44 unsigned changed_flags);
45 virtual void AddNewContents(TabContents* source, 45 virtual void AddNewContents(TabContents* source,
46 TabContents* new_contents, 46 TabContents* new_contents,
47 WindowOpenDisposition disposition, 47 WindowOpenDisposition disposition,
48 const gfx::Rect& initial_pos, 48 const gfx::Rect& initial_pos,
49 bool user_gesture); 49 bool user_gesture);
50 virtual void ActivateContents(TabContents* contents); 50 virtual void ActivateContents(TabContents* contents);
51 virtual void DeactivateContents(TabContents* contents);
52 virtual void LoadingStateChanged(TabContents* source); 51 virtual void LoadingStateChanged(TabContents* source);
53 virtual void CloseContents(TabContents* source); 52 virtual void CloseContents(TabContents* source);
54 virtual bool IsPopup(const TabContents* source) const; 53 virtual bool IsPopup(const TabContents* source) const;
55 virtual void URLStarredChanged(TabContents* source, bool starred); 54 virtual void URLStarredChanged(TabContents* source, bool starred);
56 virtual void UpdateTargetURL(TabContents* source, const GURL& url); 55 virtual void UpdateTargetURL(TabContents* source, const GURL& url);
57 virtual bool ShouldAddNavigationToHistory() const; 56 virtual bool ShouldAddNavigationToHistory() const;
58 57
59 protected: 58 protected:
60 // Overridden only for testing. 59 // Overridden only for testing.
61 virtual Browser* CreateBrowser(); 60 virtual Browser* CreateBrowser();
62 61
63 private: 62 private:
64 Profile* profile_; // Weak pointer. Always an original profile. 63 Profile* profile_; // Weak pointer. Always an original profile.
65 }; 64 };
66 65
67 #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ 66 #endif // CHROME_BROWSER_DOM_UI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_
68 67
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_window.h ('k') | chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698