OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 // Return an iterator for the last constrained window in this tab contents. | 372 // Return an iterator for the last constrained window in this tab contents. |
373 ConstrainedWindowList::iterator constrained_window_end() | 373 ConstrainedWindowList::iterator constrained_window_end() |
374 { return child_windows_.end(); } | 374 { return child_windows_.end(); } |
375 | 375 |
376 // Views and focus ----------------------------------------------------------- | 376 // Views and focus ----------------------------------------------------------- |
377 // TODO(brettw): Most of these should be removed and the caller should call | 377 // TODO(brettw): Most of these should be removed and the caller should call |
378 // the view directly. | 378 // the view directly. |
379 | 379 |
380 // Returns the actual window that is focused when this TabContents is shown. | 380 // Returns the actual window that is focused when this TabContents is shown. |
381 gfx::NativeView GetContentNativeView(); | 381 gfx::NativeView GetContentNativeView() const; |
382 | 382 |
383 // Returns the NativeView associated with this TabContents. Outside of | 383 // Returns the NativeView associated with this TabContents. Outside of |
384 // automation in the context of the UI, this is required to be implemented. | 384 // automation in the context of the UI, this is required to be implemented. |
385 gfx::NativeView GetNativeView() const; | 385 gfx::NativeView GetNativeView() const; |
386 | 386 |
387 // Returns the bounds of this TabContents in the screen coordinate system. | 387 // Returns the bounds of this TabContents in the screen coordinate system. |
388 void GetContainerBounds(gfx::Rect *out) const; | 388 void GetContainerBounds(gfx::Rect *out) const; |
389 | 389 |
390 // Makes the tab the focused window. | 390 // Makes the tab the focused window. |
391 void Focus(); | 391 void Focus(); |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 // If this tab was created from a renderer using window.open, this will be | 1120 // If this tab was created from a renderer using window.open, this will be |
1121 // non-NULL and represent the DOMUI of the opening renderer. | 1121 // non-NULL and represent the DOMUI of the opening renderer. |
1122 DOMUITypeID opener_dom_ui_type_; | 1122 DOMUITypeID opener_dom_ui_type_; |
1123 | 1123 |
1124 // --------------------------------------------------------------------------- | 1124 // --------------------------------------------------------------------------- |
1125 | 1125 |
1126 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1126 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1127 }; | 1127 }; |
1128 | 1128 |
1129 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1129 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |