Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 401007: Make executeScript and insertCSS inject code into all frames. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
356 const GURL& creator_url); 356 const GURL& creator_url);
357 357
358 // Closes all constrained windows that represent web popups that have not yet 358 // Closes all constrained windows that represent web popups that have not yet
359 // been activated by the user and are as such auto-positioned in the bottom 359 // been activated by the user and are as such auto-positioned in the bottom
360 // right of the screen. This is a quick way for users to "clean up" a flurry 360 // right of the screen. This is a quick way for users to "clean up" a flurry
361 // of unwanted popups. 361 // of unwanted popups.
362 void CloseAllSuppressedPopups(); 362 void CloseAllSuppressedPopups();
363 363
364 // Execute code in this tab. 364 // Execute code in this tab.
365 void ExecuteCode(int request_id, const std::string& extension_id, 365 void ExecuteCode(int request_id, const std::string& extension_id,
366 bool is_js_code, const std::string& code_string); 366 bool is_js_code, const std::string& code_string,
367 bool all_frames);
367 368
368 // Called when the blocked popup notification is shown or hidden. 369 // Called when the blocked popup notification is shown or hidden.
369 virtual void PopupNotificationVisibilityChanged(bool visible); 370 virtual void PopupNotificationVisibilityChanged(bool visible);
370 371
371 // Returns the number of constrained windows in this tab. Used by tests. 372 // Returns the number of constrained windows in this tab. Used by tests.
372 size_t constrained_window_count() { return child_windows_.size(); } 373 size_t constrained_window_count() { return child_windows_.size(); }
373 374
374 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList; 375 typedef std::vector<ConstrainedWindow*> ConstrainedWindowList;
375 376
376 // Return an iterator for the first constrained window in this tab contents. 377 // Return an iterator for the first constrained window in this tab contents.
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 // Can be NULL in which case we defer to the request context from the 1171 // Can be NULL in which case we defer to the request context from the
1171 // profile 1172 // profile
1172 scoped_refptr<URLRequestContextGetter> request_context_; 1173 scoped_refptr<URLRequestContextGetter> request_context_;
1173 1174
1174 // --------------------------------------------------------------------------- 1175 // ---------------------------------------------------------------------------
1175 1176
1176 DISALLOW_COPY_AND_ASSIGN(TabContents); 1177 DISALLOW_COPY_AND_ASSIGN(TabContents);
1177 }; 1178 };
1178 1179
1179 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1180 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698