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

Side by Side Diff: chrome/browser/apps/app_window_browsertest.cc

Issue 486153002: Move AppWindow related classes to extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/app_window_geometry_cache.h"
6 #include "chrome/browser/apps/app_browsertest_util.h" 5 #include "chrome/browser/apps/app_browsertest_util.h"
7 #include "chrome/browser/extensions/extension_test_message_listener.h" 6 #include "chrome/browser/extensions/extension_test_message_listener.h"
8 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/extensions/application_launch.h" 9 #include "chrome/browser/ui/extensions/application_launch.h"
11 #include "content/public/browser/notification_service.h" 10 #include "content/public/browser/notification_service.h"
12 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
12 #include "extensions/browser/app_window/app_window_geometry_cache.h"
13 #include "extensions/common/constants.h" 13 #include "extensions/common/constants.h"
14 #include "extensions/common/extension.h" 14 #include "extensions/common/extension.h"
15 15
16 using apps::AppWindowGeometryCache; 16 using extensions::AppWindowGeometryCache;
17 17
18 // This helper class can be used to wait for changes in the app window 18 // This helper class can be used to wait for changes in the app window
19 // geometry cache registry for a specific window in a specific extension. 19 // geometry cache registry for a specific window in a specific extension.
20 class GeometryCacheChangeHelper : AppWindowGeometryCache::Observer { 20 class GeometryCacheChangeHelper : AppWindowGeometryCache::Observer {
21 public: 21 public:
22 GeometryCacheChangeHelper(AppWindowGeometryCache* cache, 22 GeometryCacheChangeHelper(AppWindowGeometryCache* cache,
23 const std::string& extension_id, 23 const std::string& extension_id,
24 const std::string& window_id, 24 const std::string& window_id,
25 const gfx::Rect& bounds) 25 const gfx::Rect& bounds)
26 : cache_(cache), 26 : cache_(cache),
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 250 }
251 251
252 // TODO(benwells): Remove this test once all the things are merged together. It 252 // TODO(benwells): Remove this test once all the things are merged together. It
253 // is currently present as this feature was previously disabled on stable 253 // is currently present as this feature was previously disabled on stable
254 // channel, so the test is to ensure it has all been re-enabled properly. 254 // channel, so the test is to ensure it has all been re-enabled properly.
255 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestFrameColorsInStable) { 255 IN_PROC_BROWSER_TEST_F(AppWindowAPITest, TestFrameColorsInStable) {
256 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE); 256 extensions::ScopedCurrentChannel channel(chrome::VersionInfo::CHANNEL_STABLE);
257 ASSERT_TRUE(RunAppWindowAPITest("testFrameColors")) << message_; 257 ASSERT_TRUE(RunAppWindowAPITest("testFrameColors")) << message_;
258 } 258 }
259 #endif 259 #endif
OLDNEW
« no previous file with comments | « apps/custom_launcher_page_contents.cc ('k') | chrome/browser/ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698