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 { |
| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // TODO(brettw): Most of these should be removed and the caller should call | 442 // TODO(brettw): Most of these should be removed and the caller should call |
439 // the view directly. | 443 // the view directly. |
440 | 444 |
441 // Returns the actual window that is focused when this TabContents is shown. | 445 // Returns the actual window that is focused when this TabContents is shown. |
442 gfx::NativeView GetContentNativeView() const; | 446 gfx::NativeView GetContentNativeView() const; |
443 | 447 |
444 // Returns the NativeView associated with this TabContents. Outside of | 448 // Returns the NativeView associated with this TabContents. Outside of |
445 // automation in the context of the UI, this is required to be implemented. | 449 // automation in the context of the UI, this is required to be implemented. |
446 gfx::NativeView GetNativeView() const; | 450 gfx::NativeView GetNativeView() const; |
447 | 451 |
| 452 #if defined(TOUCH_UI) |
| 453 // Returns the View associated with this TabContents, for those platforms |
| 454 // that use views instead of native widgets. |
| 455 views::View* GetViewsView(); |
| 456 #endif |
| 457 |
448 // Returns the bounds of this TabContents in the screen coordinate system. | 458 // Returns the bounds of this TabContents in the screen coordinate system. |
449 void GetContainerBounds(gfx::Rect *out) const; | 459 void GetContainerBounds(gfx::Rect *out) const; |
450 | 460 |
451 // Makes the tab the focused window. | 461 // Makes the tab the focused window. |
452 void Focus(); | 462 void Focus(); |
453 | 463 |
454 // Focuses the first (last if |reverse| is true) element in the page. | 464 // Focuses the first (last if |reverse| is true) element in the page. |
455 // Invoked when this tab is getting the focus through tab traversal (|reverse| | 465 // Invoked when this tab is getting the focus through tab traversal (|reverse| |
456 // is true when using Shift-Tab). | 466 // is true when using Shift-Tab). |
457 void FocusThroughTabTraversal(bool reverse); | 467 void FocusThroughTabTraversal(bool reverse); |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 // Content restrictions, used to disable print/copy etc based on content's | 1335 // Content restrictions, used to disable print/copy etc based on content's |
1326 // (full-page plugins for now only) permissions. | 1336 // (full-page plugins for now only) permissions. |
1327 int content_restrictions_; | 1337 int content_restrictions_; |
1328 | 1338 |
1329 // --------------------------------------------------------------------------- | 1339 // --------------------------------------------------------------------------- |
1330 | 1340 |
1331 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1341 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1332 }; | 1342 }; |
1333 | 1343 |
1334 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1344 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |