OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 6 |
| 7 void TabContentsDelegate::DetachContents(TabContents* source) { |
| 8 } |
| 9 |
| 10 TabContents* TabContentsDelegate::GetConstrainingContents(TabContents* source) { |
| 11 return source; |
| 12 } |
| 13 |
| 14 void TabContentsDelegate::ContentsMouseEvent( |
| 15 TabContents* source, const gfx::Point& location, bool motion) { |
| 16 } |
| 17 |
| 18 void TabContentsDelegate::ContentsZoomChange(bool zoom_in) { } |
| 19 |
| 20 void TabContentsDelegate::OnContentSettingsChange(TabContents* source) { } |
| 21 |
| 22 bool TabContentsDelegate::IsApplication() const { return false; } |
| 23 |
| 24 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } |
| 25 |
| 26 bool TabContentsDelegate::CanBlur() const { return true; } |
| 27 |
| 28 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { |
| 29 return true; |
| 30 } |
| 31 |
| 32 gfx::Rect TabContentsDelegate::GetRootWindowResizerRect() const { |
| 33 return gfx::Rect(); |
| 34 } |
| 35 |
| 36 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
| 37 gfx::NativeWindow parent_window) { |
| 38 } |
| 39 |
| 40 void TabContentsDelegate::BeforeUnloadFired(TabContents* tab, |
| 41 bool proceed, |
| 42 bool* proceed_to_fire_unload) { |
| 43 *proceed_to_fire_unload = true; |
| 44 } |
| 45 |
| 46 void TabContentsDelegate::ForwardMessageToExternalHost( |
| 47 const std::string& message, |
| 48 const std::string& origin, |
| 49 const std::string& target) { |
| 50 } |
| 51 |
| 52 bool TabContentsDelegate::IsExternalTabContainer() const { return false; } |
| 53 |
| 54 void TabContentsDelegate::SetFocusToLocationBar(bool select_all) {} |
| 55 |
| 56 void TabContentsDelegate::RenderWidgetShowing() {} |
| 57 |
| 58 ExtensionFunctionDispatcher* |
| 59 TabContentsDelegate::CreateExtensionFunctionDispatcher( |
| 60 RenderViewHost* render_view_host, |
| 61 const std::string& extension_id) { |
| 62 return NULL; |
| 63 } |
| 64 |
| 65 bool TabContentsDelegate::TakeFocus(bool reverse) { |
| 66 return false; |
| 67 } |
| 68 |
| 69 void TabContentsDelegate::SetTabContentBlocked( |
| 70 TabContents* contents, bool blocked) { |
| 71 } |
| 72 |
| 73 void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) { |
| 74 } |
| 75 |
| 76 int TabContentsDelegate::GetExtraRenderViewHeight() const { |
| 77 return 0; |
| 78 } |
| 79 |
| 80 bool TabContentsDelegate::CanDownload(int request_id) { |
| 81 return true; |
| 82 } |
| 83 |
| 84 void TabContentsDelegate::OnStartDownload(DownloadItem* download) { |
| 85 } |
| 86 |
| 87 bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) { |
| 88 return false; |
| 89 } |
| 90 |
| 91 bool TabContentsDelegate::ExecuteContextMenuCommand(int command) { |
| 92 return false; |
| 93 } |
| 94 |
| 95 void TabContentsDelegate::ConfirmAddSearchProvider( |
| 96 const TemplateURL* template_url, |
| 97 Profile* profile) { |
| 98 } |
| 99 |
| 100 void TabContentsDelegate::ShowPageInfo(Profile* profile, |
| 101 const GURL& url, |
| 102 const NavigationEntry::SSLStatus& ssl, |
| 103 bool show_history) { |
| 104 } |
| 105 |
| 106 bool TabContentsDelegate::PreHandleKeyboardEvent( |
| 107 const NativeWebKeyboardEvent& event, |
| 108 bool* is_keyboard_shortcut) { |
| 109 return false; |
| 110 } |
| 111 |
| 112 void TabContentsDelegate::HandleKeyboardEvent( |
| 113 const NativeWebKeyboardEvent& event) { |
| 114 } |
| 115 |
| 116 void TabContentsDelegate::ShowRepostFormWarningDialog( |
| 117 TabContents* tab_contents) { |
| 118 } |
| 119 |
| 120 void TabContentsDelegate::ShowContentSettingsWindow( |
| 121 ContentSettingsType content_type) { |
| 122 } |
| 123 |
| 124 bool TabContentsDelegate::OnGoToEntryOffset(int offset) { |
| 125 return true; |
| 126 } |
| 127 |
| 128 bool TabContentsDelegate::ShouldAddNavigationsToHistory() const { |
| 129 return true; |
| 130 } |
| 131 |
| 132 void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents, |
| 133 int32 page_id) { |
| 134 } |
| 135 |
| 136 Browser* TabContentsDelegate::GetBrowser() { |
| 137 return NULL; |
| 138 } |
| 139 |
| 140 gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() { |
| 141 return NULL; |
| 142 } |
| 143 |
| 144 void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) { |
| 145 } |
| 146 |
| 147 bool TabContentsDelegate::infobars_enabled() { |
| 148 return true; |
| 149 } |
| 150 |
| 151 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { |
| 152 return false; |
| 153 } |
| 154 |
| 155 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { |
| 156 } |
| 157 |
| 158 TabContentsDelegate::~TabContentsDelegate() { |
| 159 } |
OLD | NEW |