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

Side by Side Diff: ui/views/bubble/bubble_frame_view_unittest.cc

Issue 8547015: Revert 110949 - views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/events/event.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/base/hit_test.h" 5 #include "ui/base/hit_test.h"
6 #include "ui/views/bubble/border_contents_view.h" 6 #include "ui/views/bubble/border_contents_view.h"
7 #include "ui/views/bubble/bubble_border.h" 7 #include "ui/views/bubble/bubble_border.h"
8 #include "ui/views/bubble/bubble_delegate.h" 8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/bubble/bubble_frame_view.h" 9 #include "ui/views/bubble/bubble_frame_view.h"
10 #include "ui/views/test/views_test_base.h" 10 #include "ui/views/test/views_test_base.h"
11 #include "ui/views/widget/widget.h" 11 #include "views/widget/widget.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 typedef ViewsTestBase BubbleFrameViewBasicTest; 15 typedef ViewsTestBase BubbleFrameViewBasicTest;
16 16
17 const BubbleBorder::ArrowLocation kArrow = BubbleBorder::TOP_LEFT; 17 const BubbleBorder::ArrowLocation kArrow = BubbleBorder::TOP_LEFT;
18 const gfx::Rect kRect(10, 10, 200, 200); 18 const gfx::Rect kRect(10, 10, 200, 200);
19 const SkColor kBackgroundColor = SK_ColorRED; 19 const SkColor kBackgroundColor = SK_ColorRED;
20 const bool kAllowBubbleOffscreen = true; 20 const bool kAllowBubbleOffscreen = true;
21 21
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 gfx::Point kPtInBound(100, 100); 59 gfx::Point kPtInBound(100, 100);
60 gfx::Point kPtOutsideBound(1000, 1000); 60 gfx::Point kPtOutsideBound(1000, 1000);
61 BubbleFrameView* bubble_frame_view = delegate->GetBubbleFrameView(); 61 BubbleFrameView* bubble_frame_view = delegate->GetBubbleFrameView();
62 EXPECT_EQ(HTCLIENT, bubble_frame_view->NonClientHitTest(kPtInBound)); 62 EXPECT_EQ(HTCLIENT, bubble_frame_view->NonClientHitTest(kPtInBound));
63 EXPECT_EQ(HTNOWHERE, bubble_frame_view->NonClientHitTest(kPtOutsideBound)); 63 EXPECT_EQ(HTNOWHERE, bubble_frame_view->NonClientHitTest(kPtOutsideBound));
64 widget->CloseNow(); 64 widget->CloseNow();
65 RunPendingMessages(); 65 RunPendingMessages();
66 } 66 }
67 67
68 } // namespace views 68 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698