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

Side by Side Diff: chrome/browser/ui/views/ash/window_positioner_unittest.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights 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/views/ash/window_positioner.h" 5 #include "chrome/browser/ui/views/ash/window_positioner.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/test_shell_delegate.h" 10 #include "ash/test/test_shell_delegate.h"
(...skipping 18 matching lines...) Expand all
29 29
30 namespace { 30 namespace {
31 31
32 // A browser window proxy which is able to associate an aura native window with 32 // A browser window proxy which is able to associate an aura native window with
33 // it. 33 // it.
34 class TestBrowserWindowAura : public TestBrowserWindow { 34 class TestBrowserWindowAura : public TestBrowserWindow {
35 public: 35 public:
36 TestBrowserWindowAura(Browser* browser, aura::Window *native_window); 36 TestBrowserWindowAura(Browser* browser, aura::Window *native_window);
37 virtual ~TestBrowserWindowAura(); 37 virtual ~TestBrowserWindowAura();
38 38
39 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE { 39 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE {
40 return native_window_; 40 return native_window_;
41 } 41 }
42 42
43 private: 43 private:
44 gfx::NativeWindow native_window_; 44 gfx::NativeWindow native_window_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindowAura); 46 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindowAura);
47 }; 47 };
48 48
49 TestBrowserWindowAura::TestBrowserWindowAura(Browser* browser, 49 TestBrowserWindowAura::TestBrowserWindowAura(Browser* browser,
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 330
331 // Check that the popup is placed full screen. 331 // Check that the popup is placed full screen.
332 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); 332 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position);
333 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), 333 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(),
334 pop_position.width(), pop_position.height()), 334 pop_position.width(), pop_position.height()),
335 full); 335 full);
336 } 336 }
337 337
338 } // namespace test 338 } // namespace test
339 } // namespace ash 339 } // namespace ash
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/ash/user_action_handler.cc ('k') | chrome/browser/ui/views/extensions/extension_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698