| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 5 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 6 | 6 |
| 7 void TabContentsDelegate::DetachContents(TabContents* source) { | 7 void TabContentsDelegate::DetachContents(TabContents* source) { |
| 8 } | 8 } |
| 9 | 9 |
| 10 TabContents* TabContentsDelegate::GetConstrainingContents(TabContents* source) { | 10 TabContents* TabContentsDelegate::GetConstrainingContents(TabContents* source) { |
| 11 return source; | 11 return source; |
| 12 } | 12 } |
| 13 | 13 |
| 14 void TabContentsDelegate::ContentsMouseEvent( | 14 void TabContentsDelegate::ContentsMouseEvent( |
| 15 TabContents* source, const gfx::Point& location, bool motion) { | 15 TabContents* source, const gfx::Point& location, bool motion) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void TabContentsDelegate::ContentsZoomChange(bool zoom_in) { } | 18 void TabContentsDelegate::ContentsZoomChange(bool zoom_in) { } |
| 19 | 19 |
| 20 void TabContentsDelegate::OnContentSettingsChange(TabContents* source) { } | 20 void TabContentsDelegate::OnContentSettingsChange(TabContents* source) { } |
| 21 | 21 |
| 22 bool TabContentsDelegate::IsApplication() const { return false; } | 22 bool TabContentsDelegate::IsApplication() const { return false; } |
| 23 | 23 |
| 24 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } | 24 void TabContentsDelegate::ConvertContentsToApplication(TabContents* source) { } |
| 25 | 25 |
| 26 bool TabContentsDelegate::CanBlur() const { return true; } | |
| 27 | |
| 28 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { | 26 bool TabContentsDelegate::CanReloadContents(TabContents* source) const { |
| 29 return true; | 27 return true; |
| 30 } | 28 } |
| 31 | 29 |
| 32 gfx::Rect TabContentsDelegate::GetRootWindowResizerRect() const { | 30 gfx::Rect TabContentsDelegate::GetRootWindowResizerRect() const { |
| 33 return gfx::Rect(); | 31 return gfx::Rect(); |
| 34 } | 32 } |
| 35 | 33 |
| 36 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, | 34 void TabContentsDelegate::ShowHtmlDialog(HtmlDialogUIDelegate* delegate, |
| 37 gfx::NativeWindow parent_window) { | 35 gfx::NativeWindow parent_window) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 148 |
| 151 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { | 149 bool TabContentsDelegate::ShouldEnablePreferredSizeNotifications() { |
| 152 return false; | 150 return false; |
| 153 } | 151 } |
| 154 | 152 |
| 155 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { | 153 void TabContentsDelegate::UpdatePreferredSize(const gfx::Size& pref_size) { |
| 156 } | 154 } |
| 157 | 155 |
| 158 TabContentsDelegate::~TabContentsDelegate() { | 156 TabContentsDelegate::~TabContentsDelegate() { |
| 159 } | 157 } |
| OLD | NEW |