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

Side by Side Diff: chrome/browser/ui/panels/panel_resize_browsertest.cc

Issue 10828289: Revert 151353 - Panels refactor: Support browserless panels on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/panels/panel_titlebar_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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/panels/base_panel_browser_test.h" 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
6 #include "chrome/browser/ui/panels/detached_panel_strip.h" 6 #include "chrome/browser/ui/panels/detached_panel_strip.h"
7 #include "chrome/browser/ui/panels/panel.h" 7 #include "chrome/browser/ui/panels/panel.h"
8 #include "chrome/browser/ui/panels/panel_manager.h" 8 #include "chrome/browser/ui/panels/panel_manager.h"
9 #include "chrome/browser/ui/panels/panel_resize_controller.h" 9 #include "chrome/browser/ui/panels/panel_resize_controller.h"
10 10
11 // Refactor has only been done for Win and Mac panels so far.
12 #if defined(OS_WIN) || defined(OS_MACOSX)
13
11 class PanelResizeBrowserTest : public BasePanelBrowserTest { 14 class PanelResizeBrowserTest : public BasePanelBrowserTest {
12 public: 15 public:
13 PanelResizeBrowserTest() : BasePanelBrowserTest() { 16 PanelResizeBrowserTest() : BasePanelBrowserTest() {
14 } 17 }
15 18
16 virtual ~PanelResizeBrowserTest() { 19 virtual ~PanelResizeBrowserTest() {
17 } 20 }
18 21
19 virtual void SetUpOnMainThread() OVERRIDE { 22 virtual void SetUpOnMainThread() OVERRIDE {
20 BasePanelBrowserTest::SetUpOnMainThread(); 23 BasePanelBrowserTest::SetUpOnMainThread();
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 bounds.set_height(bounds.height() + bounds.y() - mouse_location.y()); 406 bounds.set_height(bounds.height() + bounds.y() - mouse_location.y());
404 bounds.set_x(mouse_location.x()); 407 bounds.set_x(mouse_location.x());
405 bounds.set_y(mouse_location.y()); 408 bounds.set_y(mouse_location.y());
406 EXPECT_EQ(bounds, panel->GetBounds()); 409 EXPECT_EQ(bounds, panel->GetBounds());
407 410
408 panel_manager->EndResizingByMouse(false); 411 panel_manager->EndResizingByMouse(false);
409 EXPECT_EQ(bounds, panel->GetBounds()); 412 EXPECT_EQ(bounds, panel->GetBounds());
410 413
411 panel_manager->CloseAll(); 414 panel_manager->CloseAll();
412 } 415 }
416
417 #endif // OS_WIN || OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/panels/panel_titlebar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698