| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 351 |
| 352 // Closes all constrained windows that represent web popups that have not yet | 352 // Closes all constrained windows that represent web popups that have not yet |
| 353 // been activated by the user and are as such auto-positioned in the bottom | 353 // been activated by the user and are as such auto-positioned in the bottom |
| 354 // right of the screen. This is a quick way for users to "clean up" a flurry | 354 // right of the screen. This is a quick way for users to "clean up" a flurry |
| 355 // of unwanted popups. | 355 // of unwanted popups. |
| 356 void CloseAllSuppressedPopups(); | 356 void CloseAllSuppressedPopups(); |
| 357 | 357 |
| 358 // Called when the blocked popup notification is shown or hidden. | 358 // Called when the blocked popup notification is shown or hidden. |
| 359 virtual void PopupNotificationVisibilityChanged(bool visible); | 359 virtual void PopupNotificationVisibilityChanged(bool visible); |
| 360 | 360 |
| 361 // Returns the number of constrained windows in this tab. Used by tests. |
| 362 size_t constrained_window_count() { return child_windows_.size(); } |
| 363 |
| 361 // Views and focus ----------------------------------------------------------- | 364 // Views and focus ----------------------------------------------------------- |
| 362 // TODO(brettw): Most of these should be removed and the caller should call | 365 // TODO(brettw): Most of these should be removed and the caller should call |
| 363 // the view directly. | 366 // the view directly. |
| 364 | 367 |
| 365 // Returns the actual window that is focused when this TabContents is shown. | 368 // Returns the actual window that is focused when this TabContents is shown. |
| 366 gfx::NativeView GetContentNativeView(); | 369 gfx::NativeView GetContentNativeView(); |
| 367 | 370 |
| 368 // Returns the NativeView associated with this TabContents. Outside of | 371 // Returns the NativeView associated with this TabContents. Outside of |
| 369 // automation in the context of the UI, this is required to be implemented. | 372 // automation in the context of the UI, this is required to be implemented. |
| 370 gfx::NativeView GetNativeView() const; | 373 gfx::NativeView GetNativeView() const; |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 // True if the user has decided to block future javascript messages. This is | 1068 // True if the user has decided to block future javascript messages. This is |
| 1066 // reset on navigations to false on navigations. | 1069 // reset on navigations to false on navigations. |
| 1067 bool suppress_javascript_messages_; | 1070 bool suppress_javascript_messages_; |
| 1068 | 1071 |
| 1069 // --------------------------------------------------------------------------- | 1072 // --------------------------------------------------------------------------- |
| 1070 | 1073 |
| 1071 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1074 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1072 }; | 1075 }; |
| 1073 | 1076 |
| 1074 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1077 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |