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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.cc

Issue 2812056: Relanding http://codereview.chromium.org/2870050/show. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: rebased Created 10 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698