Home
last modified time | relevance | path

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

1234

/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 …]
Durl_drop_target.mm32 view_ = view;
33 [view_ registerForDraggedTypes:[URLDropTargetHandler handledDragTypes]];
50 NSPoint hoverPoint = [view_ convertPoint:[sender draggingLocation]
52 [[view_ urlDropController] indicateDropURLsInView:view_ at:hoverPoint];
69 [view_ convertPoint:[sender draggingLocation] fromView:nil];
77 [[view_ urlDropController] dropURLs:urls inView:view_ at:dropPoint];
83 [[view_ urlDropController] dropText:text inView:view_ at:dropPoint];
106 [[view_ urlDropController] hideDropURLsIndicatorInView:view_];
Dstyled_text_field_cell_unittest.mm35 view_ = view.get();
36 [view_ setCell:cell_];
38 [[test_window() contentView] addSubview:view_];
41 NSTextField* view_;
46 TEST_VIEW(StyledTextFieldCellTest, view_);
50 [view_ display];
53 [test_window() makePretendKeyWindowAndSetFirstResponder:view_];
54 [view_ display];
59 [view_ display];
62 [view_ display];
[all …]
Dimage_utils_unittest.mm92 view_ = view.get();
93 [[test_window() contentView] addSubview:view_];
97 [view_ display];
99 const NSRect bounds = [view_ bounds];
101 [view_ lockFocus];
104 [view_ unlockFocus];
110 [view_ setUseNeverFlipped:NO];
115 [view_ setUseNeverFlipped:YES];
116 [view_ setNeverFlipped:neverFlipped];
120 ImageUtilsTestView* view_;
[all …]
Danimatable_view_unittest.mm20 view_.reset([[AnimatableView alloc] initWithFrame:frame]);
21 [[test_window() contentView] addSubview:view_.get()];
24 [view_ setResizeDelegate:resizeDelegate_.get()];
28 scoped_nsobject<AnimatableView> view_;
32 TEST_VIEW(AnimatableViewTest, view_);
36 NSRect initialFrame = [view_ frame];
38 EXPECT_EQ(initialFrame.size.height, [view_ height]);
42 [view_ setHeight:50];
Dbackground_tile_view_unittest.mm21 view_ = view.get();
22 [[test_window() contentView] addSubview:view_];
25 BackgroundTileView *view_;
28 TEST_VIEW(BackgroundTileViewTest, view_)
33 [view_ setTileImage:image];
34 [view_ display];
Dbase_view_unittest.mm20 view_ = view.get();
21 [[test_window() contentView] addSubview:view_];
24 BaseView* view_; // weak
27 TEST_VIEW(BaseViewTest, view_)
29 // Convert a rect in |view_|'s Cocoa coordinate system to gfx::Rect's top-left
34 gfx::Rect converted = [view_ flipNSRectToRect:convert];
41 NSRect back_again = [view_ flipRectToNSRect:converted];
/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/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/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/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 …]
Dautocomplete_text_field_cell_unittest.mm55 view_ = view.get();
70 [view_ setCell:cell.get()];
72 [[test_window() contentView] addSubview:view_];
75 NSTextField* view_;
82 TEST_VIEW(AutocompleteTextFieldCellTest, view_);
87 [view_ display];
90 [test_window() makePretendKeyWindowAndSetFirstResponder:view_];
91 [view_ display];
96 static_cast<AutocompleteTextFieldCell*>([view_ cell]);
103 SelectedKeywordDecoration selected_keyword_decoration([view_ font]);
[all …]
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit.cc70 view_(view), in AutocompleteEditModel()
106 const string16 user_text(UserTextFromDisplayText(view_->GetText())); in GetStateForTabSwitch()
108 view_->RevertAll(); in GetStateForTabSwitch()
109 view_->SelectAll(true); in GetStateForTabSwitch()
125 view_->SetUserText(state.user_text, in RestoreState()
167 view_->OnBeforePossibleChange(); in FinalizeInstantQuery()
168 view_->SetWindowTextAndCaretPos(final_text, final_text.length()); in FinalizeInstantQuery()
169 view_->OnAfterPossibleChange(); in FinalizeInstantQuery()
183 FinalizeInstantQuery(view_->GetText(), text, false); in SetSuggestedText()
185 view_->SetInstantSuggestion(text, false); in SetSuggestedText()
[all …]
Dautocomplete_popup_model.cc29 : view_(popup_view), in AutocompletePopupModel()
41 return view_->IsOpen(); in IsOpen()
54 view_->InvalidateLine(hovered_line_); in SetHoveredLine()
59 view_->InvalidateLine(hovered_line_); in SetHoveredLine()
96 view_->InvalidateLine(selected_line_); in SetSelectedLine()
98 view_->InvalidateLine(selected_line_); in SetSelectedLine()
121 view_->PaintUpdatesNow(); in SetSelectedLine()
128 view_->OnDragCanceled(); in ResetToDefaultMatch()
247 view_->UpdatePopupAppearance(); in OnResultChanged()
/external/chromium/chrome/browser/chromeos/
Dsetting_level_bubble.cc84 view_(NULL), in SettingLevelBubble()
106 DCHECK(view_ == NULL); in ShowBubble()
107 view_ = new SettingLevelBubbleView; in ShowBubble()
108 view_->Init(icon, previous_percent_); in ShowBubble()
111 const gfx::Size view_size = view_->GetPreferredSize(); in ShowBubble()
119 view_, // contents in ShowBubble()
123 DCHECK(view_); in ShowBubble()
125 view_->SetIcon(icon); in ShowBubble()
166 view_ = NULL; in BubbleClosing()
174 if (view_) { in AnimationProgressed()
[all …]
/external/chromium/chrome/browser/ui/gtk/infobars/
Dextension_infobar_gtk.cc21 view_(NULL) { in ExtensionInfoBarGtk()
28 gtk_widget_unparent(view_->native_view()); in ~ExtensionInfoBarGtk()
63 view_ = extension_host->view(); in BuildWidgets()
64 if (gtk_widget_get_parent(view_->native_view())) { in BuildWidgets()
65 gtk_widget_reparent(view_->native_view(), hbox_); in BuildWidgets()
66 gtk_box_set_child_packing(GTK_BOX(hbox_), view_->native_view(), in BuildWidgets()
69 gtk_box_pack_start(GTK_BOX(hbox_), view_->native_view(), TRUE, TRUE, 0); in BuildWidgets()
72 g_signal_connect(view_->native_view(), "size_allocate", in BuildWidgets()
/external/chromium/chrome/browser/ui/cocoa/bookmarks/
Dbookmark_bar_folder_view_unittest.mm159 view_.reset([[BookmarkBarFolderView alloc] init]);
162 scoped_nsobject<BookmarkBarFolderView> view_;
166 [view_ awakeFromNib];
168 [view_ setController:info.get()];
172 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
173 EXPECT_TRUE([view_ performDragOperation:(id)info.get()]);
180 [view_ awakeFromNib];
182 [view_ setController:info.get()];
188 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
189 EXPECT_TRUE([view_ performDragOperation:(id)info.get()]);
[all …]
Dbookmark_bar_view_unittest.mm169 view_.reset([[BookmarkBarView alloc] init]);
172 scoped_nsobject<BookmarkBarView> view_;
176 EXPECT_FALSE([view_ mouseDownCanMoveWindow]);
182 [view_ setController:info.get()];
186 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
187 EXPECT_TRUE([view_ performDragOperation:(id)info.get()]);
196 [view_ setController:info.get()];
202 EXPECT_EQ([view_ draggingEntered:(id)info.get()], NSDragOperationMove);
203 EXPECT_TRUE([view_ performDragOperation:(id)info.get()]);
214 [view_ setController:info.get()];
[all …]
/external/chromium/chrome/browser/ui/views/
Dstatus_bubble_views.cc547 view_(NULL), in StatusBubbleViews()
568 if (!view_) in Init()
569 view_ = new StatusView(this, popup_.get(), frame->GetThemeProvider()); in Init()
571 expand_view_.reset(new StatusViewExpander(this, view_)); in Init()
574 popup_->SetContentsView(view_); in Init()
616 view_->SetText(status_text, true); in SetStatus()
617 view_->Show(); in SetStatus()
619 view_->SetText(url_text_, true); in SetStatus()
621 view_->SetText(string16(), true); in SetStatus()
638 view_->SetText(status_text_, true); in SetURL()
[all …]
/external/chromium/chrome/browser/ui/cocoa/find_bar/
Dfind_bar_text_field_cell_unittest.mm47 view_ = view;
48 [view_ setCell:cell_];
50 [[test_window() contentView] addSubview:view_];
53 NSTextField* view_;
58 TEST_VIEW(FindBarTextFieldCellTest, view_);
62 [view_ display];
65 [test_window() makePretendKeyWindowAndSetFirstResponder:view_];
66 [view_ display];
71 [view_ display];
74 [view_ display];
[all …]
Dfind_bar_view_unittest.mm36 view_ = view.get();
37 [[test_window() contentView] addSubview:view_];
40 FindBarView* view_;
43 TEST_VIEW(FindBarViewTest, view_)
52 [view_ setSubviews:[NSArray array]];
53 [view_ setFrame:NSMakeRect(0, 0, 200, 200)];
58 relativeTo:view_];
73 [view_ setFrame:NSMakeRect(0, 0, 200, 200)];
78 relativeTo:view_];
/external/chromium/chrome/browser/renderer_host/
Drender_widget_host_view_gtk.cc523 view_.Destroy(); in ~RenderWidgetHostViewGtk()
530 gtk_widget_show(view_.get()); in InitAsChild()
541 gtk_container_add(GTK_CONTAINER(window), view_.get()); in InitAsPopup()
553 gtk_grab_add(view_.get()); in InitAsPopup()
592 gtk_container_add(GTK_CONTAINER(window), view_.get()); in InitAsFullscreen()
635 gtk_widget_set_size_request(view_.get(), width, height); in SetSize()
641 gtk_widget_set_size_request(view_.get(), width, height); in SetSize()
656 gtk_window_move(GTK_WINDOW(gtk_widget_get_toplevel(view_.get())), in SetBounds()
664 return view_.get(); in GetNativeView()
675 gtk_widget_grab_focus(view_.get()); in Focus()
[all …]

1234