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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 const gfx::Rect& initial_pos, | 356 const gfx::Rect& initial_pos, |
357 bool user_gesture, | 357 bool user_gesture, |
358 const GURL& creator_url); | 358 const GURL& creator_url); |
359 | 359 |
360 // Closes all constrained windows that represent web popups that have not yet | 360 // Closes all constrained windows that represent web popups that have not yet |
361 // been activated by the user and are as such auto-positioned in the bottom | 361 // been activated by the user and are as such auto-positioned in the bottom |
362 // right of the screen. This is a quick way for users to "clean up" a flurry | 362 // right of the screen. This is a quick way for users to "clean up" a flurry |
363 // of unwanted popups. | 363 // of unwanted popups. |
364 void CloseAllSuppressedPopups(); | 364 void CloseAllSuppressedPopups(); |
365 | 365 |
| 366 // Execute code in this tab. |
| 367 void ExecuteCode(int request_id, const std::string& extension_id, |
| 368 bool is_js_code, const std::string& code_string); |
| 369 |
366 // Called when the blocked popup notification is shown or hidden. | 370 // Called when the blocked popup notification is shown or hidden. |
367 virtual void PopupNotificationVisibilityChanged(bool visible); | 371 virtual void PopupNotificationVisibilityChanged(bool visible); |
368 | 372 |
369 // 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. |
370 size_t constrained_window_count() { return child_windows_.size(); } | 374 size_t constrained_window_count() { return child_windows_.size(); } |
371 | 375 |
372 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; | 376 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; |
373 | 377 |
374 // 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. |
375 ConstrainedWindowList::iterator constrained_window_begin() | 379 ConstrainedWindowList::iterator constrained_window_begin() |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1132 // If this tab was created from a renderer using window.open, this will be | 1136 // If this tab was created from a renderer using window.open, this will be |
1133 // non-NULL and represent the DOMUI of the opening renderer. | 1137 // non-NULL and represent the DOMUI of the opening renderer. |
1134 DOMUITypeID opener_dom_ui_type_; | 1138 DOMUITypeID opener_dom_ui_type_; |
1135 | 1139 |
1136 // --------------------------------------------------------------------------- | 1140 // --------------------------------------------------------------------------- |
1137 | 1141 |
1138 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1142 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1139 }; | 1143 }; |
1140 | 1144 |
1141 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1145 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |