| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 const GURL& creator_url); | 357 const GURL& creator_url); |
| 358 | 358 |
| 359 // Closes all constrained windows that represent web popups that have not yet | 359 // Closes all constrained windows that represent web popups that have not yet |
| 360 // been activated by the user and are as such auto-positioned in the bottom | 360 // been activated by the user and are as such auto-positioned in the bottom |
| 361 // right of the screen. This is a quick way for users to "clean up" a flurry | 361 // right of the screen. This is a quick way for users to "clean up" a flurry |
| 362 // of unwanted popups. | 362 // of unwanted popups. |
| 363 void CloseAllSuppressedPopups(); | 363 void CloseAllSuppressedPopups(); |
| 364 | 364 |
| 365 // Execute code in this tab. | 365 // Execute code in this tab. |
| 366 void ExecuteCode(int request_id, const std::string& extension_id, | 366 void ExecuteCode(int request_id, const std::string& extension_id, |
| 367 bool is_js_code, const std::string& code_string); | 367 bool is_js_code, const std::string& code_string, |
| 368 bool all_frames); |
| 368 | 369 |
| 369 // Called when the blocked popup notification is shown or hidden. | 370 // Called when the blocked popup notification is shown or hidden. |
| 370 virtual void PopupNotificationVisibilityChanged(bool visible); | 371 virtual void PopupNotificationVisibilityChanged(bool visible); |
| 371 | 372 |
| 372 // Returns the number of constrained windows in this tab. Used by tests. | 373 // Returns the number of constrained windows in this tab. Used by tests. |
| 373 size_t constrained_window_count() { return child_windows_.size(); } | 374 size_t constrained_window_count() { return child_windows_.size(); } |
| 374 | 375 |
| 375 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; | 376 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; |
| 376 | 377 |
| 377 // Return an iterator for the first constrained window in this tab contents. | 378 // Return an iterator for the first constrained window in this tab contents. |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 | 1179 |
| 1179 // The time that we started to close the tab. | 1180 // The time that we started to close the tab. |
| 1180 base::TimeTicks tab_close_start_time_; | 1181 base::TimeTicks tab_close_start_time_; |
| 1181 | 1182 |
| 1182 // --------------------------------------------------------------------------- | 1183 // --------------------------------------------------------------------------- |
| 1183 | 1184 |
| 1184 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1185 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1185 }; | 1186 }; |
| 1186 | 1187 |
| 1187 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1188 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |