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

Side by Side Diff: ash/wm/resize_shadow_and_cursor_unittest.cc

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Add TODO. Created 6 years, 3 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
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/ash_constants.h" 5 #include "ash/ash_constants.h"
6 #include "ash/frame/custom_frame_view_ash.h" 6 #include "ash/frame/custom_frame_view_ash.h"
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 8 #include "ash/test/ash_test_base.h"
9 #include "ash/test/cursor_manager_test_api.h" 9 #include "ash/test/cursor_manager_test_api.h"
10 #include "ash/wm/resize_shadow.h" 10 #include "ash/wm/resize_shadow.h"
(...skipping 18 matching lines...) Expand all
29 TestWidgetDelegate() {} 29 TestWidgetDelegate() {}
30 virtual ~TestWidgetDelegate() {} 30 virtual ~TestWidgetDelegate() {}
31 31
32 // views::WidgetDelegateView overrides: 32 // views::WidgetDelegateView overrides:
33 virtual bool CanResize() const OVERRIDE { 33 virtual bool CanResize() const OVERRIDE {
34 return true; 34 return true;
35 } 35 }
36 virtual bool CanMaximize() const OVERRIDE { 36 virtual bool CanMaximize() const OVERRIDE {
37 return true; 37 return true;
38 } 38 }
39 virtual bool CanMinimize() const OVERRIDE {
40 return true;
41 }
39 virtual views::NonClientFrameView* CreateNonClientFrameView( 42 virtual views::NonClientFrameView* CreateNonClientFrameView(
40 views::Widget* widget) OVERRIDE { 43 views::Widget* widget) OVERRIDE {
41 return new ash::CustomFrameViewAsh(widget); 44 return new ash::CustomFrameViewAsh(widget);
42 } 45 }
43 46
44 private: 47 private:
45 DISALLOW_COPY_AND_ASSIGN(TestWidgetDelegate); 48 DISALLOW_COPY_AND_ASSIGN(TestWidgetDelegate);
46 }; 49 };
47 50
48 } // namespace 51 } // namespace
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 generator.MoveMouseTo(200, 50); 224 generator.MoveMouseTo(200, 50);
222 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); 225 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest());
223 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); 226 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType());
224 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); 227 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50);
225 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); 228 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest());
226 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); 229 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType());
227 } 230 }
228 231
229 } // namespace test 232 } // namespace test
230 } // namespace ash 233 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698