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

Side by Side Diff: chrome/browser/ui/window_sizer_ash_unittest.cc

Issue 10534079: Add support for managing active state of platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use new launch_2 test platform app Created 8 years, 6 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 (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/ui/window_sizer.h" 5 #include "chrome/browser/ui/window_sizer.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 WindowSizerTestWithBrowser::~WindowSizerTestWithBrowser() { 56 WindowSizerTestWithBrowser::~WindowSizerTestWithBrowser() {
57 } 57 }
58 58
59 // A browser window proxy which is able to associate an aura native window with 59 // A browser window proxy which is able to associate an aura native window with
60 // it. 60 // it.
61 class TestBrowserWindowAura : public TestBrowserWindow { 61 class TestBrowserWindowAura : public TestBrowserWindow {
62 public: 62 public:
63 TestBrowserWindowAura(Browser* browser, aura::Window* native_window); 63 TestBrowserWindowAura(Browser* browser, aura::Window* native_window);
64 virtual ~TestBrowserWindowAura(); 64 virtual ~TestBrowserWindowAura();
65 65
66 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE { 66 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE {
67 return native_window_; 67 return native_window_;
68 } 68 }
69 69
70 private: 70 private:
71 gfx::NativeWindow native_window_; 71 gfx::NativeWindow native_window_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindowAura); 73 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindowAura);
74 }; 74 };
75 75
76 } // namespace 76 } // namespace
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 } 711 }
712 712
713 { // Check that a window which hangs out of the screen get moved back in. 713 { // Check that a window which hangs out of the screen get moved back in.
714 gfx::Rect window_bounds; 714 gfx::Rect window_bounds;
715 GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(), gfx::Rect(), 715 GetWindowBounds(tentwentyfour, tentwentyfour, gfx::Rect(), gfx::Rect(),
716 gfx::Rect(), DEFAULT, &window_bounds, NULL, 716 gfx::Rect(), DEFAULT, &window_bounds, NULL,
717 gfx::Rect(1020, 700, 100, 100)); 717 gfx::Rect(1020, 700, 100, 100));
718 EXPECT_EQ(gfx::Rect(924, 668, 100, 100), window_bounds); 718 EXPECT_EQ(gfx::Rect(924, 668, 100, 100), window_bounds);
719 } 719 }
720 } 720 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698