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

Side by Side Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 8 years 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) 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 #include "chrome/browser/extensions/shell_window_registry.h" 5 #include "chrome/browser/extensions/shell_window_registry.h"
6 #include "chrome/browser/profiles/profile_dependency_manager.h" 6 #include "chrome/browser/profiles/profile_dependency_manager.h"
7 #include "chrome/browser/ui/extensions/native_app_window.h"
7 #include "chrome/browser/ui/extensions/shell_window.h" 8 #include "chrome/browser/ui/extensions/shell_window.h"
8 #include "chrome/common/extensions/extension.h" 9 #include "chrome/common/extensions/extension.h"
9 #include "content/public/browser/notification_types.h" 10 #include "content/public/browser/notification_types.h"
10 #include "content/public/browser/render_view_host.h" 11 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
12 13
13 namespace { 14 namespace {
14 15
15 // Create a key that identifies a ShellWindow in a RenderViewHost across App 16 // Create a key that identifies a ShellWindow in a RenderViewHost across App
16 // reloads. If the window was given an id in CreateParams, the key is the 17 // reloads. If the window was given an id in CreateParams, the key is the
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 178
178 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const { 179 bool ShellWindowRegistry::Factory::ServiceIsCreatedWithProfile() const {
179 return true; 180 return true;
180 } 181 }
181 182
182 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const { 183 bool ShellWindowRegistry::Factory::ServiceIsNULLWhileTesting() const {
183 return false; 184 return false;
184 } 185 }
185 186
186 } // namespace extensions 187 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698