Lines Matching refs:tab_contents

5 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_gtk.h"
15 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h"
19 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h"
22 #include "content/browser/tab_contents/interstitial_page.h"
23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "content/browser/tab_contents/tab_contents_delegate.h"
48 TabContents* tab_contents) {
57 tab_contents->FocusThroughTabTraversal(reverse);
65 TabContents* tab_contents) {
66 if (tab_contents->delegate())
67 tab_contents->delegate()->ContentsMouseEvent(
68 tab_contents, views::Screen::GetCursorScreenPoint(), false);
80 TabContents* tab_contents) {
83 if (tab_contents->delegate()) {
85 tab_contents->delegate()->ContentsZoomChange(false);
88 tab_contents->delegate()->ContentsZoomChange(true);
100 TabContentsView* TabContentsView::Create(TabContents* tab_contents) {
101 return new TabContentsViewGtk(tab_contents);
104 TabContentsViewGtk::TabContentsViewGtk(TabContents* tab_contents)
105 : TabContentsView(tab_contents),
183 G_CALLBACK(OnFocus), tab_contents());
185 G_CALLBACK(OnLeaveNotify2), tab_contents());
189 G_CALLBACK(OnMouseScroll), tab_contents());
197 if (tab_contents()->ShouldAcceptDragAndDrop())
198 drag_dest_.reset(new WebDragDestGtk(tab_contents(), view->native_view()));
209 RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView();
251 sad_tab_ = new SadTabView(tab_contents(), kind);
263 RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView();
269 if (tab_contents()->interstitial_page()) {
270 tab_contents()->interstitial_page()->Focus();
274 if (tab_contents()->is_crashed() && sad_tab_ != NULL) {
284 RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView();
289 if (tab_contents()->FocusLocationBarByDefault())
290 tab_contents()->SetFocusToLocationBar(false);
350 if (tab_contents()->delegate())
351 tab_contents()->delegate()->TabContentsFocused(tab_contents());
355 if (tab_contents()->delegate() &&
356 !tab_contents()->delegate()->TakeFocus(reverse)) {
370 if (tab_contents()->delegate()->HandleContextMenu(params))
373 context_menu_.reset(new RenderViewContextMenuViews(tab_contents(), params));
413 if (tab_contents()->render_view_host() &&
414 !tab_contents()->render_view_host()->IsRenderViewLive() &&
431 tab_contents()->HideContents();
435 tab_contents()->ShowContents();
446 if (tab_contents()->interstitial_page())
447 tab_contents()->interstitial_page()->SetSize(size);
450 RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView();
484 else if (tab_contents()->delegate())
485 tab_contents()->delegate()->ContentsMouseEvent(
486 tab_contents(), views::Screen::GetCursorScreenPoint(), true);