| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 virtual void RequestOpenURL(const GURL& url, | 262 virtual void RequestOpenURL(const GURL& url, |
| 263 const content::Referrer& referrer, | 263 const content::Referrer& referrer, |
| 264 WindowOpenDisposition disposition, | 264 WindowOpenDisposition disposition, |
| 265 int64 source_frame_id) OVERRIDE; | 265 int64 source_frame_id) OVERRIDE; |
| 266 virtual void RequestTransferURL( | 266 virtual void RequestTransferURL( |
| 267 const GURL& url, | 267 const GURL& url, |
| 268 const content::Referrer& referrer, | 268 const content::Referrer& referrer, |
| 269 WindowOpenDisposition disposition, | 269 WindowOpenDisposition disposition, |
| 270 int64 source_frame_id, | 270 int64 source_frame_id, |
| 271 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE; | 271 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE; |
| 272 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 272 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
| 273 const string16& message, | 273 const string16& message, |
| 274 const string16& default_prompt, | 274 const string16& default_prompt, |
| 275 const GURL& frame_url, | 275 const GURL& frame_url, |
| 276 ui::JavascriptMessageType type, | 276 ui::JavascriptMessageType type, |
| 277 IPC::Message* reply_msg, | 277 IPC::Message* reply_msg, |
| 278 bool* did_suppress_message) OVERRIDE; | 278 bool* did_suppress_message) OVERRIDE; |
| 279 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 279 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
| 280 const string16& message, | 280 const string16& message, |
| 281 IPC::Message* reply_msg) OVERRIDE; | 281 IPC::Message* reply_msg) OVERRIDE; |
| 282 virtual content::RendererPreferences GetRendererPrefs( | 282 virtual content::RendererPreferences GetRendererPrefs( |
| 283 content::BrowserContext* browser_context) const OVERRIDE; | 283 content::BrowserContext* browser_context) const OVERRIDE; |
| 284 virtual WebPreferences GetWebkitPrefs() OVERRIDE; | 284 virtual WebPreferences GetWebkitPrefs() OVERRIDE; |
| 285 virtual void OnUserGesture() OVERRIDE; | 285 virtual void OnUserGesture() OVERRIDE; |
| 286 virtual void OnIgnoredUIEvent() OVERRIDE; | 286 virtual void OnIgnoredUIEvent() OVERRIDE; |
| 287 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 287 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
| 288 bool is_during_unload) OVERRIDE; | 288 bool is_during_unload) OVERRIDE; |
| 289 virtual void RendererResponsive(RenderViewHost* render_view_host) OVERRIDE; | 289 virtual void RendererResponsive(RenderViewHost* render_view_host) OVERRIDE; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 virtual void NotifySwappedFromRenderManager() OVERRIDE; | 330 virtual void NotifySwappedFromRenderManager() OVERRIDE; |
| 331 virtual NavigationControllerImpl& GetControllerForRenderManager() OVERRIDE; | 331 virtual NavigationControllerImpl& GetControllerForRenderManager() OVERRIDE; |
| 332 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; | 332 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; |
| 333 virtual content::NavigationEntry* | 333 virtual content::NavigationEntry* |
| 334 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; | 334 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; |
| 335 virtual bool FocusLocationBarByDefault() OVERRIDE; | 335 virtual bool FocusLocationBarByDefault() OVERRIDE; |
| 336 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 336 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
| 337 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; | 337 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; |
| 338 | 338 |
| 339 // Overridden from JavaScriptDialogDelegate: | 339 // Overridden from JavaScriptDialogDelegate: |
| 340 virtual void OnDialogClosed(IPC::Message* reply_msg, | 340 virtual void OnDialogClosed(RenderViewHost* rvh, |
| 341 IPC::Message* reply_msg, |
| 341 bool success, | 342 bool success, |
| 342 const string16& user_input) OVERRIDE; | 343 const string16& user_input) OVERRIDE; |
| 343 virtual gfx::NativeWindow GetDialogRootWindow() const OVERRIDE; | 344 virtual gfx::NativeWindow GetDialogRootWindow() const OVERRIDE; |
| 344 virtual void OnDialogShown() OVERRIDE; | 345 virtual void OnDialogShown() OVERRIDE; |
| 345 | 346 |
| 346 protected: | 347 protected: |
| 347 friend class content::WebContentsObserver; | 348 friend class content::WebContentsObserver; |
| 348 | 349 |
| 349 // Add and remove observers for page navigation notifications. Adding or | 350 // Add and remove observers for page navigation notifications. Adding or |
| 350 // removing multiple times has no effect. The order in which notifications | 351 // removing multiple times has no effect. The order in which notifications |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // (full-page plugins for now only) permissions. | 643 // (full-page plugins for now only) permissions. |
| 643 int content_restrictions_; | 644 int content_restrictions_; |
| 644 | 645 |
| 645 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 646 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
| 646 content::ViewType view_type_; | 647 content::ViewType view_type_; |
| 647 | 648 |
| 648 DISALLOW_COPY_AND_ASSIGN(TabContents); | 649 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 649 }; | 650 }; |
| 650 | 651 |
| 651 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 652 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |