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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 virtual void RequestOpenURL(const GURL& url, | 261 virtual void RequestOpenURL(const GURL& url, |
262 const content::Referrer& referrer, | 262 const content::Referrer& referrer, |
263 WindowOpenDisposition disposition, | 263 WindowOpenDisposition disposition, |
264 int64 source_frame_id) OVERRIDE; | 264 int64 source_frame_id) OVERRIDE; |
265 virtual void RequestTransferURL( | 265 virtual void RequestTransferURL( |
266 const GURL& url, | 266 const GURL& url, |
267 const content::Referrer& referrer, | 267 const content::Referrer& referrer, |
268 WindowOpenDisposition disposition, | 268 WindowOpenDisposition disposition, |
269 int64 source_frame_id, | 269 int64 source_frame_id, |
270 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE; | 270 const content::GlobalRequestID& transferred_global_request_id) OVERRIDE; |
271 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 271 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
272 const string16& message, | 272 const string16& message, |
273 const string16& default_prompt, | 273 const string16& default_prompt, |
274 const GURL& frame_url, | 274 const GURL& frame_url, |
275 ui::JavascriptMessageType type, | 275 ui::JavascriptMessageType type, |
276 IPC::Message* reply_msg, | 276 IPC::Message* reply_msg, |
277 bool* did_suppress_message) OVERRIDE; | 277 bool* did_suppress_message) OVERRIDE; |
278 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 278 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
279 const string16& message, | 279 const string16& message, |
280 IPC::Message* reply_msg) OVERRIDE; | 280 IPC::Message* reply_msg) OVERRIDE; |
281 virtual content::RendererPreferences GetRendererPrefs( | 281 virtual content::RendererPreferences GetRendererPrefs( |
282 content::BrowserContext* browser_context) const OVERRIDE; | 282 content::BrowserContext* browser_context) const OVERRIDE; |
283 virtual WebPreferences GetWebkitPrefs() OVERRIDE; | 283 virtual WebPreferences GetWebkitPrefs() OVERRIDE; |
284 virtual void OnUserGesture() OVERRIDE; | 284 virtual void OnUserGesture() OVERRIDE; |
285 virtual void OnIgnoredUIEvent() OVERRIDE; | 285 virtual void OnIgnoredUIEvent() OVERRIDE; |
286 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 286 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
287 bool is_during_unload) OVERRIDE; | 287 bool is_during_unload) OVERRIDE; |
288 virtual void RendererResponsive(RenderViewHost* render_view_host) OVERRIDE; | 288 virtual void RendererResponsive(RenderViewHost* render_view_host) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 virtual void NotifySwappedFromRenderManager() OVERRIDE; | 329 virtual void NotifySwappedFromRenderManager() OVERRIDE; |
330 virtual NavigationControllerImpl& GetControllerForRenderManager() OVERRIDE; | 330 virtual NavigationControllerImpl& GetControllerForRenderManager() OVERRIDE; |
331 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; | 331 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; |
332 virtual content::NavigationEntry* | 332 virtual content::NavigationEntry* |
333 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; | 333 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; |
334 virtual bool FocusLocationBarByDefault() OVERRIDE; | 334 virtual bool FocusLocationBarByDefault() OVERRIDE; |
335 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 335 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
336 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; | 336 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; |
337 | 337 |
338 // Overridden from JavaScriptDialogDelegate: | 338 // Overridden from JavaScriptDialogDelegate: |
339 virtual void OnDialogClosed(IPC::Message* reply_msg, | 339 virtual void OnDialogClosed(RenderViewHost* rvh, |
| 340 IPC::Message* reply_msg, |
340 bool success, | 341 bool success, |
341 const string16& user_input) OVERRIDE; | 342 const string16& user_input) OVERRIDE; |
342 virtual gfx::NativeWindow GetDialogRootWindow() const OVERRIDE; | 343 virtual gfx::NativeWindow GetDialogRootWindow() const OVERRIDE; |
343 virtual void OnDialogShown() OVERRIDE; | 344 virtual void OnDialogShown() OVERRIDE; |
344 | 345 |
345 protected: | 346 protected: |
346 friend class content::WebContentsObserver; | 347 friend class content::WebContentsObserver; |
347 | 348 |
348 // Add and remove observers for page navigation notifications. Adding or | 349 // Add and remove observers for page navigation notifications. Adding or |
349 // removing multiple times has no effect. The order in which notifications | 350 // removing multiple times has no effect. The order in which notifications |
(...skipping 292 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 |