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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "content/browser/tab_contents/navigation_entry.h" 13 #include "content/browser/tab_contents/navigation_entry.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/navigation_types.h" 15 #include "content/common/navigation_types.h"
16 #include "content/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 #include "webkit/glue/window_open_disposition.h" 18 #include "webkit/glue/window_open_disposition.h"
19 19
20 namespace content { 20 namespace content {
21 class BrowserContext; 21 class BrowserContext;
22 class JavaScriptDialogCreator; 22 class JavaScriptDialogCreator;
23 } 23 }
24 24
25 namespace gfx { 25 namespace gfx {
26 class Point; 26 class Point;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // OpenURL() for these cases which does it for you). 61 // OpenURL() for these cases which does it for you).
62 62
63 // Returns the TabContents the URL is opened in, or NULL if the URL wasn't 63 // Returns the TabContents the URL is opened in, or NULL if the URL wasn't
64 // opened immediately. 64 // opened immediately.
65 // Deprecated. Please use the two-arguments method instead. 65 // Deprecated. Please use the two-arguments method instead.
66 // TODO(adriansc): Remove this method once refactoring changed all call sites. 66 // TODO(adriansc): Remove this method once refactoring changed all call sites.
67 virtual TabContents* OpenURLFromTab(TabContents* source, 67 virtual TabContents* OpenURLFromTab(TabContents* source,
68 const GURL& url, 68 const GURL& url,
69 const GURL& referrer, 69 const GURL& referrer,
70 WindowOpenDisposition disposition, 70 WindowOpenDisposition disposition,
71 PageTransition::Type transition); 71 content::PageTransition transition);
72 72
73 virtual TabContents* OpenURLFromTab(TabContents* source, 73 virtual TabContents* OpenURLFromTab(TabContents* source,
74 const OpenURLParams& params); 74 const OpenURLParams& params);
75 75
76 // Called to inform the delegate that the tab content's navigation state 76 // Called to inform the delegate that the tab content's navigation state
77 // changed. The |changed_flags| indicates the parts of the navigation state 77 // changed. The |changed_flags| indicates the parts of the navigation state
78 // that have been updated, and is any combination of the 78 // that have been updated, and is any combination of the
79 // |TabContents::InvalidateTypes| bits. 79 // |TabContents::InvalidateTypes| bits.
80 virtual void NavigationStateChanged(const TabContents* source, 80 virtual void NavigationStateChanged(const TabContents* source,
81 unsigned changed_flags); 81 unsigned changed_flags);
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void Attach(TabContents* source); 358 void Attach(TabContents* source);
359 359
360 // Called when |this| is no longer the TabContentsDelegate for |source|. 360 // Called when |this| is no longer the TabContentsDelegate for |source|.
361 void Detach(TabContents* source); 361 void Detach(TabContents* source);
362 362
363 // The TabContents that this is currently a delegate for. 363 // The TabContents that this is currently a delegate for.
364 std::set<TabContents*> attached_contents_; 364 std::set<TabContents*> attached_contents_;
365 }; 365 };
366 366
367 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 367 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698