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

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

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/public/browser/navigation_type.h" 15 #include "content/public/browser/navigation_type.h"
16 #include "content/public/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 class DownloadItem; 20 class DownloadItem;
21 class FilePath; 21 class FilePath;
22 class GURL; 22 class GURL;
23 class TabContents; 23 class TabContents;
24 class TabModalDialogDelegate;
24 struct ContextMenuParams; 25 struct ContextMenuParams;
25 struct NativeWebKeyboardEvent; 26 struct NativeWebKeyboardEvent;
26 struct OpenURLParams; 27 struct OpenURLParams;
27 28
28 namespace base { 29 namespace base {
29 class ListValue; 30 class ListValue;
30 } 31 }
31 32
32 namespace content { 33 namespace content {
33 class BrowserContext; 34 class BrowserContext;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // the renderer. 242 // the renderer.
242 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 243 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
243 244
244 virtual void HandleMouseDown(); 245 virtual void HandleMouseDown();
245 virtual void HandleMouseUp(); 246 virtual void HandleMouseUp();
246 virtual void HandleMouseActivate(); 247 virtual void HandleMouseActivate();
247 248
248 // Render view drag n drop ended. 249 // Render view drag n drop ended.
249 virtual void DragEnded(); 250 virtual void DragEnded();
250 251
251 // Shows the repost form confirmation dialog box. 252 virtual void ShowTabModalDialog(TabModalDialogDelegate* delegate,
252 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); 253 TabContents* tab_contents);
253 254
254 // Allows delegate to override navigation to the history entries. 255 // Allows delegate to override navigation to the history entries.
255 // Returns true to allow TabContents to continue with the default processing. 256 // Returns true to allow TabContents to continue with the default processing.
256 virtual bool OnGoToEntryOffset(int offset); 257 virtual bool OnGoToEntryOffset(int offset);
257 258
258 // Returns whether this tab contents should add the specified navigation to 259 // Returns whether this tab contents should add the specified navigation to
259 // history. 260 // history.
260 virtual bool ShouldAddNavigationToHistory( 261 virtual bool ShouldAddNavigationToHistory(
261 const history::HistoryAddPageArgs& add_page_args, 262 const history::HistoryAddPageArgs& add_page_args,
262 content::NavigationType navigation_type); 263 content::NavigationType navigation_type);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void Attach(TabContents* source); 372 void Attach(TabContents* source);
372 373
373 // Called when |this| is no longer the TabContentsDelegate for |source|. 374 // Called when |this| is no longer the TabContentsDelegate for |source|.
374 void Detach(TabContents* source); 375 void Detach(TabContents* source);
375 376
376 // The TabContents that this is currently a delegate for. 377 // The TabContents that this is currently a delegate for.
377 std::set<TabContents*> attached_contents_; 378 std::set<TabContents*> attached_contents_;
378 }; 379 };
379 380
380 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 381 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/navigation_controller.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