Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace IPC { | 53 namespace IPC { |
| 54 class Message; | 54 class Message; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace webkit_glue { | 57 namespace webkit_glue { |
| 58 struct PasswordForm; | 58 struct PasswordForm; |
| 59 } | 59 } |
| 60 | 60 |
| 61 namespace views { | |
|
Ben Goodger (Google)
2010/12/15 18:32:28
This is no longer needed.
Alex Nicolaou
2010/12/16 22:34:48
Done.
| |
| 62 class View; | |
| 63 } | |
| 64 | |
| 61 class AutocompleteHistoryManager; | 65 class AutocompleteHistoryManager; |
| 62 class AutoFillManager; | 66 class AutoFillManager; |
| 63 class BlockedContentContainer; | 67 class BlockedContentContainer; |
| 64 class DOMUI; | 68 class DOMUI; |
| 65 class DownloadItem; | 69 class DownloadItem; |
| 66 class Extension; | 70 class Extension; |
| 67 class FileSelectHelper; | 71 class FileSelectHelper; |
| 68 class InfoBarDelegate; | 72 class InfoBarDelegate; |
| 69 class LoadNotificationDetails; | 73 class LoadNotificationDetails; |
| 70 class OmniboxSearchHint; | 74 class OmniboxSearchHint; |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 444 // TODO(brettw): Most of these should be removed and the caller should call | 448 // TODO(brettw): Most of these should be removed and the caller should call |
| 445 // the view directly. | 449 // the view directly. |
| 446 | 450 |
| 447 // Returns the actual window that is focused when this TabContents is shown. | 451 // Returns the actual window that is focused when this TabContents is shown. |
| 448 gfx::NativeView GetContentNativeView() const; | 452 gfx::NativeView GetContentNativeView() const; |
| 449 | 453 |
| 450 // Returns the NativeView associated with this TabContents. Outside of | 454 // Returns the NativeView associated with this TabContents. Outside of |
| 451 // automation in the context of the UI, this is required to be implemented. | 455 // automation in the context of the UI, this is required to be implemented. |
| 452 gfx::NativeView GetNativeView() const; | 456 gfx::NativeView GetNativeView() const; |
| 453 | 457 |
| 458 // Returns the TabContentsView associated with this TabContents. | |
| 459 TabContentsView* GetTabContentsView(); | |
|
Ben Goodger (Google)
2010/12/15 18:32:28
TabContentsView* view() const { return view_.get()
Alex Nicolaou
2010/12/16 22:34:48
Oh <duh> I didn't see this was already in the file
| |
| 460 | |
| 454 // Returns the bounds of this TabContents in the screen coordinate system. | 461 // Returns the bounds of this TabContents in the screen coordinate system. |
| 455 void GetContainerBounds(gfx::Rect *out) const; | 462 void GetContainerBounds(gfx::Rect *out) const; |
| 456 | 463 |
| 457 // Makes the tab the focused window. | 464 // Makes the tab the focused window. |
| 458 void Focus(); | 465 void Focus(); |
| 459 | 466 |
| 460 // Focuses the first (last if |reverse| is true) element in the page. | 467 // Focuses the first (last if |reverse| is true) element in the page. |
| 461 // Invoked when this tab is getting the focus through tab traversal (|reverse| | 468 // Invoked when this tab is getting the focus through tab traversal (|reverse| |
| 462 // is true when using Shift-Tab). | 469 // is true when using Shift-Tab). |
| 463 void FocusThroughTabTraversal(bool reverse); | 470 void FocusThroughTabTraversal(bool reverse); |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1344 // Content restrictions, used to disable print/copy etc based on content's | 1351 // Content restrictions, used to disable print/copy etc based on content's |
| 1345 // (full-page plugins for now only) permissions. | 1352 // (full-page plugins for now only) permissions. |
| 1346 int content_restrictions_; | 1353 int content_restrictions_; |
| 1347 | 1354 |
| 1348 // --------------------------------------------------------------------------- | 1355 // --------------------------------------------------------------------------- |
| 1349 | 1356 |
| 1350 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1357 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1351 }; | 1358 }; |
| 1352 | 1359 |
| 1353 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1360 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |