Home
last modified time | relevance | path

Searched refs:view_ (Results 1 – 25 of 251) sorted by relevance

1234567891011

/external/chromium_org/ui/message_center/cocoa/
Dstatus_item_view_unittest.mm13 : view_([[MCStatusItemView alloc] init]) {
18 [[test_window() contentView] addSubview:view_];
22 [view_ removeItem];
27 base::scoped_nsobject<MCStatusItemView> view_;
34 [view_ setCallback:^{
37 [view_ mouseDown:nil];
39 [view_ mouseUp:nil];
42 [view_ rightMouseDown:nil];
44 [view_ rightMouseUp:nil];
47 [view_ otherMouseDown:nil];
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/
Dimage_button_cell_unittest.mm18 view_ = view.get();
21 [view_ setCell:cell.get()];
22 [[test_window() contentView] addSubview:view_];
26 [[view_ cell] setImageID:IDR_BACK
28 [[view_ cell] setImageID:IDR_BACK_H
30 [[view_ cell] setImageID:IDR_BACK_P
32 [[view_ cell] setImageID:IDR_BACK_D
36 NSButton* view_;
42 EXPECT_FALSE([[view_ cell] isMouseInside]);
43 [view_ display];
[all …]
Dbubble_view_unittest.mm17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
19 [view_ setContent:@"Hi there, I'm a bubble view"];
22 BubbleView* view_;
25 TEST_VIEW(BubbleViewTest, view_);
38 [view_ setContent:nil];
39 EXPECT_TRUE([view_ content] == nil);
40 [view_ setContent:@""];
41 EXPECT_NSEQ(@"", [view_ content]);
43 [view_ setContent:str];
[all …]
Dfast_resize_view_unittest.mm17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
23 [view_ addSubview:childView_];
26 FastResizeView* view_;
30 TEST_VIEW(FastResizeViewTest, view_);
37 [view_ setFrame:squareFrame];
38 EXPECT_TRUE(NSEqualRects([view_ bounds], [childView_ frame]));
42 [view_ setFastResizeMode:YES];
43 [view_ setFrame:NSMakeRect(15, 30, 250, 250)];
45 EXPECT_EQ(NSMinX([view_ bounds]), NSMinX([childView_ frame]));
[all …]
Dhyperlink_text_view_unittest.mm18 view_ = view.get();
19 [[test_window() contentView] addSubview:view_];
52 HyperlinkTextView* view_;
58 TEST_VIEW(HyperlinkTextViewTest, view_);
61 EXPECT_FALSE([view_ isEditable]);
62 EXPECT_FALSE([view_ drawsBackground]);
63 EXPECT_FALSE([view_ isHorizontallyResizable]);
64 EXPECT_FALSE([view_ isVerticallyResizable]);
69 [view_ setMessageAndLink:@"This is a short text message"
76 [[view_ textStorage] string]);
[all …]
Dgradient_button_cell_unittest.mm25 view_ = view.get();
28 [view_ setCell:cell.get()];
29 [[test_window() contentView] addSubview:view_];
32 NSButton* view_;
35 TEST_VIEW(GradientButtonCellTest, view_)
39 [[view_ cell] setHoverAlpha:0.0];
40 [view_ display];
41 [[view_ cell] setHoverAlpha:0.5];
42 [view_ display];
43 [[view_ cell] setHoverAlpha:1.0];
[all …]
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_view_aura_unittest.cc181 view_ = new FakeRenderWidgetHostViewAura(widget_host_); in SetUp()
187 if (view_) in TearDown()
188 view_->Destroy(); in TearDown()
218 FakeRenderWidgetHostViewAura* view_; member in content::__anon9bc9ac0a0111::RenderWidgetHostViewAuraTest
270 view_->InitAsFullscreen(parent_view_); in TEST_F()
271 aura::Window* window = view_->GetNativeView(); in TEST_F()
281 EXPECT_TRUE(view_->ShouldActivate()); in TEST_F()
301 view_->InitAsPopup(parent_view_, bounds_in_screen); in TEST_F()
303 gfx::Rect final_bounds_in_screen = view_->GetViewBounds(); in TEST_F()
309 view_->SetBounds(bounds_in_screen); in TEST_F()
[all …]
Drender_widget_host_view_guest_unittest.cc36 view_ = new RenderWidgetHostViewGuest( in SetUp()
41 if (view_) in TearDown()
42 view_->Destroy(); in TearDown()
59 RenderWidgetHostViewGuest* view_; member in content::__anonce5963e90111::RenderWidgetHostViewGuestTest
68 view_->Show(); in TEST_F()
69 ASSERT_TRUE(view_->IsShowing()); in TEST_F()
71 view_->Hide(); in TEST_F()
72 ASSERT_FALSE(view_->IsShowing()); in TEST_F()
74 view_->WasShown(); in TEST_F()
75 ASSERT_TRUE(view_->IsShowing()); in TEST_F()
[all …]
/external/chromium/chrome/browser/ui/cocoa/
Dtab_view_picker_table_unittest.mm38 view_ = view.get();
39 [view_ setAllowsEmptySelection:NO];
40 [view_ setAllowsMultipleSelection:NO];
41 [view_ addTableColumn:
43 [[test_window() contentView] addSubview:view_];
68 view_->tabView_ = tabView_;
69 [view_ awakeFromNib];
72 TabViewPickerTable* view_;
77 TEST_VIEW(TabViewPickerTableTest, view_)
80 EXPECT_EQ(1, [view_ selectedRow]);
[all …]
Dbubble_view_unittest.mm17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
19 [view_ setContent:@"Hi there, I'm a bubble view"];
22 BubbleView* view_;
25 TEST_VIEW(BubbleViewTest, view_);
38 [view_ setContent:nil];
39 EXPECT_TRUE([view_ content] == nil);
40 [view_ setContent:@""];
41 EXPECT_NSEQ(@"", [view_ content]);
43 [view_ setContent:str];
[all …]
Dfast_resize_view_unittest.mm17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
22 [view_ addSubview:childView_];
25 FastResizeView* view_;
29 TEST_VIEW(FastResizeViewTest, view_);
36 [view_ setFrame:squareFrame];
37 EXPECT_TRUE(NSEqualRects([view_ bounds], [childView_ frame]));
41 [view_ setFastResizeMode:YES];
42 [view_ setFrame:NSMakeRect(15, 30, 250, 250)];
44 EXPECT_EQ(NSMinX([view_ bounds]), NSMinX([childView_ frame]));
[all …]
Dgradient_button_cell_unittest.mm24 view_ = view.get();
27 [view_ setCell:cell.get()];
28 [[test_window() contentView] addSubview:view_];
31 NSButton* view_;
34 TEST_VIEW(GradientButtonCellTest, view_)
38 [[view_ cell] setHoverAlpha:0.0];
39 [view_ display];
40 [[view_ cell] setHoverAlpha:0.5];
41 [view_ display];
42 [[view_ cell] setHoverAlpha:1.0];
[all …]
/external/chromium/chrome/browser/chromeos/login/
Dview_screen.h29 V* view() { return view_; } in view()
44 V* view_; variable
69 view_(NULL), in ViewScreen()
77 view_(NULL), in ViewScreen()
85 if (view_) { in ~ViewScreen()
86 delete view_; in ~ViewScreen() local
87 view_ = NULL; in ~ViewScreen()
95 if (!view_) { in Show()
98 view_->SetVisible(true); in Show()
107 if (view_) { in Hide()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/autofill/
Dlayout_view_unittest.mm19 view_.reset([[LayoutView alloc] initWithFrame:NSZeroRect]);
20 [view_ setLayoutManager:
21 scoped_ptr<SimpleGridLayout>(new SimpleGridLayout(view_))];
22 layout_ = [view_ layoutManager];
23 [[test_window() contentView] addSubview:view_];
27 base::scoped_nsobject<LayoutView> view_;
28 SimpleGridLayout* layout_; // weak, owned by view_.
33 TEST_VIEW(LayoutViewTest, view_)
36 EXPECT_FLOAT_EQ(0, NSWidth([view_ frame]));
37 EXPECT_FLOAT_EQ(0, NSHeight([view_ frame]));
[all …]
Dautofill_section_view_unittest.mm22 view_.reset(
24 [[test_window() contentView] addSubview:view_];
32 windowNumber:[[view_ window] windowNumber]
40 NSRect bounds = [view_ bounds];
69 NSRect bounds = [view_ bounds];
78 base::scoped_nsobject<AutofillSectionView> view_;
106 TEST_VIEW(AutofillSectionViewTest, view_)
109 EXPECT_EQ(1.0, [[view_ hoverColor] alphaComponent]);
113 EXPECT_FALSE([view_ isHighlighted]);
115 [view_ mouseEntered:fakeEvent(NSMouseEntered)];
[all …]
/external/chromium_org/ash/wm/
Dpartial_screenshot_view_unittest.cc19 PartialScreenshotViewTest() : view_(NULL) {} in PartialScreenshotViewTest()
27 view_ = views[0]; in SetUp()
31 PartialScreenshotView* view_; member in ash::PartialScreenshotViewTest
42 EXPECT_FALSE(view_->is_dragging_); in TEST_F()
43 EXPECT_EQ("100,100", view_->start_position_.ToString()); in TEST_F()
46 EXPECT_TRUE(view_->is_dragging_); in TEST_F()
47 EXPECT_EQ("200,200", view_->current_position_.ToString()); in TEST_F()
50 EXPECT_FALSE(view_->is_dragging_); in TEST_F()
60 EXPECT_FALSE(view_->is_dragging_); in TEST_F()
64 EXPECT_FALSE(view_->is_dragging_); in TEST_F()
[all …]
Dapp_list_controller.cc125 view_(NULL), in AppListController()
134 if (view_ && view_->GetWidget()) in ~AppListController()
135 view_->GetWidget()->CloseNow(); in ~AppListController()
152 if (view_) { in SetVisible()
159 view_->GetWidget()->Deactivate(); in SetVisible()
209 return view_ && view_->GetWidget()->IsVisible(); in IsVisible()
213 return is_visible_ && view_ ? view_->GetWidget()->GetNativeWindow() : NULL; in GetWindow()
221 if (view_ && is_visible_) in SetDragAndDropHostOfCurrentAppList()
222 view_->SetDragAndDropHostOfCurrentAppList(drag_and_drop_host); in SetDragAndDropHostOfCurrentAppList()
226 DCHECK(view_ == NULL); in SetView()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
Dbrowser_actions_container_view_unittest.mm20 view_.reset([[BrowserActionsContainerView alloc]
24 base::scoped_nsobject<BrowserActionsContainerView> view_;
28 EXPECT_TRUE([view_ isResizable]);
29 EXPECT_TRUE([view_ canDragLeft]);
30 EXPECT_TRUE([view_ canDragRight]);
31 EXPECT_TRUE([view_ isHidden]);
36 [view_ resizeToWidth:5.0 animate:NO];
37 EXPECT_EQ(kMinimumContainerWidth, NSWidth([view_ frame])) << "Frame width is "
41 EXPECT_EQ(-kMinimumContainerWidth, [view_ resizeDeltaX]);
43 [view_ resizeToWidth:35.0 animate:NO];
[all …]
/external/chromium_org/chrome/browser/ui/views/app_list/linux/
Dapp_list_linux.cc18 : view_(view), in AppListLinux()
21 view_->AddObserver(this); in AppListLinux()
25 view_->RemoveObserver(this); in ~AppListLinux()
56 view_->GetWidget()->Show(); in Show()
58 view_->GetWidget()->GetTopLevelWidget()->UpdateWindowIcon(); in Show()
61 view_->GetWidget()->Activate(); in Show()
65 view_->GetWidget()->Hide(); in Hide()
71 gfx::Screen::GetScreenFor(view_->GetWidget()->GetNativeView()); in MoveNearCursor()
74 view_->SetBubbleArrow(views::BubbleBorder::FLOAT); in MoveNearCursor()
80 view_->SetAnchorPoint(FindAnchorPoint(view_->GetPreferredSize(), display, in MoveNearCursor()
[all …]
/external/chromium/chrome/browser/ui/cocoa/extensions/
Dbrowser_actions_container_view_unittest.mm20 view_.reset([[BrowserActionsContainerView alloc]
24 scoped_nsobject<BrowserActionsContainerView> view_;
28 EXPECT_TRUE([view_ isResizable]);
29 EXPECT_TRUE([view_ canDragLeft]);
30 EXPECT_TRUE([view_ canDragRight]);
31 EXPECT_TRUE([view_ isHidden]);
36 [view_ resizeToWidth:5.0 animate:NO];
37 EXPECT_EQ(kMinimumContainerWidth, NSWidth([view_ frame])) << "Frame width is "
41 EXPECT_EQ(-kMinimumContainerWidth, [view_ resizeDeltaX]);
43 [view_ resizeToWidth:35.0 animate:NO];
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/tabs/
Dtab_view_unittest.mm23 view_ = view.get();
24 [[test_window() contentView] addSubview:view_];
27 TabView* view_;
30 TEST_VIEW(TabViewTest, view_)
36 [view_ setHoverAlpha:i*0.2];
37 [view_ setAlertAlpha:j*0.2];
38 [view_ display];
45 EXPECT_FALSE([view_ menu]);
54 [view_ startAlert];
55 [view_ cancelAlert];
[all …]
/external/chromium_org/ui/views/accessibility/
Dnative_view_accessibility_win.cc209 : view_(NULL), in NativeViewAccessibilityWin()
218 if (!view_) in NotifyAccessibilityEvent()
222 HWND hwnd = HWNDForView(view_); in NotifyAccessibilityEvent()
230 view_storage->StoreView(view_storage_id, view_); in NotifyAccessibilityEvent()
247 view_ = NULL; in Destroy()
256 if (!view_ || !view_->GetWidget()) in accHitTest()
261 if (view_->GetWidget()->GetRootView() == view_) { in accHitTest()
275 View::ConvertPointFromScreen(view_, &point); in accHitTest()
278 if (!view_->HitTestPoint(point)) { in accHitTest()
286 for (int i = view_->child_count() - 1; i >= 0; --i) { in accHitTest()
[all …]
/external/chromium/chrome/browser/ui/cocoa/tabs/
Dtab_view_unittest.mm20 view_ = view.get();
21 [[test_window() contentView] addSubview:view_];
24 TabView* view_;
27 TEST_VIEW(TabViewTest, view_)
33 [view_ setHoverAlpha:i*0.2];
34 [view_ setAlertAlpha:j*0.2];
35 [view_ display];
42 EXPECT_FALSE([view_ menu]);
51 [view_ startAlert];
52 [view_ cancelAlert];
[all …]
/external/chromium_org/chrome/browser/ui/views/app_list/win/
Dapp_list_win.cc47 : view_(view), in AppListWin()
83 view_->GetWidget()->Show(); in Show()
85 view_->GetWidget()->GetTopLevelWidget()->UpdateWindowIcon(); in Show()
88 view_->GetWidget()->Activate(); in Show()
92 view_->GetWidget()->Hide(); in Hide()
99 gfx::Screen::GetScreenFor(view_->GetWidget()->GetNativeView()); in MoveNearCursor()
102 view_->SetBubbleArrow(views::BubbleBorder::FLOAT); in MoveNearCursor()
105 view_->SetAnchorPoint(FindAnchorPoint(view_->GetPreferredSize(), display, in MoveNearCursor()
110 return view_->GetWidget()->IsVisible(); in IsVisible()
114 view_->Prerender(); in Prerender()
[all …]
/external/chromium/chrome/browser/ui/cocoa/location_bar/
Domnibox_popup_view_unittest.mm17 view_ = view.get();
18 [[test_window() contentView] addSubview:view_];
21 OmniboxPopupView* view_; // Weak. Owned by the view hierarchy.
25 TEST_VIEW(OmniboxPopupViewTest, view_);
32 [view_ addSubview:subview1];
36 [view_ setFrame:NSMakeRect(0, 0, 100, 100)];
37 EXPECT_TRUE(NSEqualRects([view_ bounds], [subview1 frame]));
46 [view_ addSubview:subview1];
47 [view_ addSubview:subview2];
52 [view_ setFrame:NSMakeRect(0, 0, 300, 4 * height)];
[all …]

1234567891011