[go: nahoru, domu]

blob: 539c22127170f88934de8573eb12a7a47d8e26cd [file] [log] [blame]
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/tab_contents/tab_contents_delegate.h"
void TabContentsDelegate::DetachContents(TabContents* source) {
}
TabContents* TabContentsDelegate::GetConstrainingContents(TabContents* source) {
return source;
}
void TabContentsDelegate::ContentsMouseEvent(
TabContents* source, const gfx::Point& location, bool motion) {
}
void TabContentsDelegate::ContentsZoomChange(bool zoom_in) { }
void TabContentsDelegate::OnContentSettingsChange(TabContents* source) { }
bool TabContentsDelegate::IsApplication() const { return false; }
void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { }
bool TabContentsDelegate::CanBlur() const { return true; }
bool TabContentsDelegate::CanReloadContents(TabContents* source) const {
return true;
}
gfx::Rect TabContentsDelegate::GetRootWindowResizerRect() const {
return gfx::Rect();
}
void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
gfx::NativeWindow parent_window) {
}
void TabContentsDelegate::BeforeUnloadFired(TabContents* tab,
bool proceed,
bool* proceed_to_fire_unload) {
*proceed_to_fire_unload = true;
}
void TabContentsDelegate::ForwardMessageToExternalHost(
const std::string& message,
const std::string& origin,
const std::string& target) {
}
bool TabContentsDelegate::IsExternalTabContainer() const { return false; }
void TabContentsDelegate::SetFocusToLocationBar(bool select_all) {}
void TabContentsDelegate::RenderWidgetShowing() {}
ExtensionFunctionDispatcher*
TabContentsDelegate::CreateExtensionFunctionDispatcher(
RenderViewHost* render_view_host,
const std::string& extension_id) {
return NULL;
}
bool TabContentsDelegate::TakeFocus(bool reverse) {
return false;
}
void TabContentsDelegate::SetTabContentBlocked(
TabContents* contents, bool blocked) {
}
void TabContentsDelegate::TabContentsFocused(TabContents* tab_content) {
}
int TabContentsDelegate::GetExtraRenderViewHeight() const {
return 0;
}
bool TabContentsDelegate::CanDownload(int request_id) {
return true;
}
void TabContentsDelegate::OnStartDownload(DownloadItem* download) {
}
bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) {
return false;
}
bool TabContentsDelegate::ExecuteContextMenuCommand(int command) {
return false;
}
void TabContentsDelegate::ConfirmAddSearchProvider(
const TemplateURL* template_url,
Profile* profile) {
}
void TabContentsDelegate::ShowPageInfo(Profile* profile,
const GURL& url,
const NavigationEntry::SSLStatus& ssl,
bool show_history) {
}
bool TabContentsDelegate::PreHandleKeyboardEvent(
const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
return false;
}
void TabContentsDelegate::HandleKeyboardEvent(
const NativeWebKeyboardEvent& event) {
}
void TabContentsDelegate::ShowRepostFormWarningDialog(
TabContents* tab_contents) {
}
void TabContentsDelegate::ShowContentSettingsWindow(
ContentSettingsType content_type) {
}
bool TabContentsDelegate::OnGoToEntryOffset(int offset) {
return true;
}
bool TabContentsDelegate::ShouldAddNavigationsToHistory() const {
return true;
}
void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents,
int32 page_id) {
}
Browser* TabContentsDelegate::GetBrowser() {
return NULL;
}
gfx::NativeWindow TabContentsDelegate::GetFrameNativeWindow() {
return NULL;
}
void TabContentsDelegate::TabContentsCreated(TabContents* new_contents) {
}
bool TabContentsDelegate::infobars_enabled() {
return true;
}
bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() {
return false;
}
void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) {
}
TabContentsDelegate::~TabContentsDelegate() {
}