Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: chrome/browser/tab_contents/tab_contents_delegate.cc

Issue 6537015: Start moving core pieces of Chrome multi-process code to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/tab_contents_delegate.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents_delegate.cc (revision 75368)
+++ chrome/browser/tab_contents/tab_contents_delegate.cc (working copy)
@@ -1,224 +0,0 @@
-// Copyright (c) 2011 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"
-
-#include "chrome/common/url_constants.h"
-#include "ui/gfx/rect.h"
-
-std::string TabContentsDelegate::GetNavigationHeaders(const GURL& url) {
- return std::string();
-}
-
-void TabContentsDelegate::LoadProgressChanged(double progress) {
-}
-
-void TabContentsDelegate::DetachContents(TabContents* source) {
-}
-
-bool TabContentsDelegate::IsPopup(const TabContents* source) const {
- return false;
-}
-
-TabContents* TabContentsDelegate::GetConstrainingContents(TabContents* source) {
- return source;
-}
-
-bool TabContentsDelegate::ShouldFocusConstrainedWindow() {
- return true;
-}
-
-void TabContentsDelegate::WillShowConstrainedWindow(TabContents* 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::CanReloadContents(TabContents* source) const {
- return true;
-}
-
-void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
- gfx::NativeWindow parent_window) {
-}
-
-void TabContentsDelegate::WillRunBeforeUnloadConfirm() {
-}
-
-bool TabContentsDelegate::ShouldSuppressDialogs() {
- return false;
-}
-
-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) {}
-
-bool TabContentsDelegate::ShouldFocusPageAfterCrash() {
- return true;
-}
-
-void TabContentsDelegate::RenderWidgetShowing() {}
-
-bool TabContentsDelegate::TakeFocus(bool reverse) {
- return false;
-}
-
-void TabContentsDelegate::LostCapture() {
-}
-
-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,
- TabContents* tab) {
-}
-
-bool TabContentsDelegate::HandleContextMenu(const ContextMenuParams& params) {
- return false;
-}
-
-bool TabContentsDelegate::ExecuteContextMenuCommand(int command) {
- return false;
-}
-
-void TabContentsDelegate::ShowPageInfo(Profile* profile,
- const GURL& url,
- const NavigationEntry::SSLStatus& ssl,
- bool show_history) {
-}
-
-void TabContentsDelegate::ViewSourceForTab(TabContents* source,
- const GURL& page_url) {
- // Fall back implementation based entirely on the view-source scheme.
- // It suffers from http://crbug.com/523 and that is why browser overrides
- // it with proper implementation.
- GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
- page_url.spec());
- OpenURLFromTab(source,
- url,
- GURL(),
- NEW_FOREGROUND_TAB,
- PageTransition::LINK);
-}
-
-bool TabContentsDelegate::PreHandleKeyboardEvent(
- const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) {
- return false;
-}
-
-void TabContentsDelegate::HandleKeyboardEvent(
- const NativeWebKeyboardEvent& event) {
-}
-
-void TabContentsDelegate::HandleMouseUp() {
-}
-
-void TabContentsDelegate::HandleMouseActivate() {
-}
-
-void TabContentsDelegate::DragEnded() {
-}
-
-void TabContentsDelegate::ShowRepostFormWarningDialog(
- TabContents* tab_contents) {
-}
-
-void TabContentsDelegate::ShowContentSettingsWindow(
- ContentSettingsType content_type) {
-}
-
-void TabContentsDelegate::ShowCollectedCookiesDialog(
- TabContents* tab_contents) {
-}
-
-bool TabContentsDelegate::OnGoToEntryOffset(int offset) {
- return true;
-}
-
-bool TabContentsDelegate::ShouldAddNavigationToHistory(
- const history::HistoryAddPageArgs& add_page_args,
- NavigationType::Type navigation_type) {
- return true;
-}
-
-void TabContentsDelegate::OnDidGetApplicationInfo(TabContents* tab_contents,
- int32 page_id) {
-}
-
-// Notification when an application programmatically requests installation.
-void TabContentsDelegate::OnInstallApplication(
- TabContents* tab_contents,
- const WebApplicationInfo& app_info) {
-}
-
-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) {
-}
-
-void TabContentsDelegate::OnSetSuggestions(
- int32 page_id,
- const std::vector<std::string>& suggestions) {
-}
-
-void TabContentsDelegate::OnInstantSupportDetermined(int32 page_id,
- bool result) {
-}
-
-void TabContentsDelegate::ContentRestrictionsChanged(TabContents* source) {
-}
-
-bool TabContentsDelegate::ShouldShowHungRendererDialog() {
- return true;
-}
-
-TabContentsDelegate::~TabContentsDelegate() {
-}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/browser/tab_contents/tab_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698