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

Side by Side Diff: chrome/browser/background/background_contents_service.h

Issue 889403004: Rename initial_pos to initial_rect in ShowWidget and ShowView IPCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // returns false, if the BackgroundContents closed due to the render process 84 // returns false, if the BackgroundContents closed due to the render process
85 // crashing. 85 // crashing.
86 bool HasRegisteredBackgroundContents(const base::string16& appid); 86 bool HasRegisteredBackgroundContents(const base::string16& appid);
87 87
88 // Returns all currently opened BackgroundContents (used by the task manager). 88 // Returns all currently opened BackgroundContents (used by the task manager).
89 std::vector<BackgroundContents*> GetBackgroundContents() const; 89 std::vector<BackgroundContents*> GetBackgroundContents() const;
90 90
91 // BackgroundContents::Delegate implementation. 91 // BackgroundContents::Delegate implementation.
92 void AddWebContents(content::WebContents* new_contents, 92 void AddWebContents(content::WebContents* new_contents,
93 WindowOpenDisposition disposition, 93 WindowOpenDisposition disposition,
94 const gfx::Rect& initial_pos, 94 const gfx::Rect& initial_rect,
95 bool user_gesture, 95 bool user_gesture,
96 bool* was_blocked) override; 96 bool* was_blocked) override;
97 97
98 // Gets the parent application id for the passed BackgroundContents. Returns 98 // Gets the parent application id for the passed BackgroundContents. Returns
99 // an empty string if no parent application found (e.g. passed 99 // an empty string if no parent application found (e.g. passed
100 // BackgroundContents has already shut down). 100 // BackgroundContents has already shut down).
101 const base::string16& GetParentApplicationId(BackgroundContents* contents) con st; 101 const base::string16& GetParentApplicationId(BackgroundContents* contents) con st;
102 102
103 // Creates a new BackgroundContents using the passed |site| and 103 // Creates a new BackgroundContents using the passed |site| and
104 // the |route_id| and begins tracking the object internally so it can be 104 // the |route_id| and begins tracking the object internally so it can be
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 BackgroundContentsMap contents_map_; 236 BackgroundContentsMap contents_map_;
237 237
238 ScopedObserver<extensions::ExtensionRegistry, 238 ScopedObserver<extensions::ExtensionRegistry,
239 extensions::ExtensionRegistryObserver> 239 extensions::ExtensionRegistryObserver>
240 extension_registry_observer_; 240 extension_registry_observer_;
241 241
242 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); 242 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService);
243 }; 243 };
244 244
245 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 245 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/background/background_contents.cc ('k') | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698