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

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

Issue 3033004: Revert 52600 - renderer_host: Remove CanBlur method.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('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 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void OnContentSettingsChange(TabContents* source); 118 virtual void OnContentSettingsChange(TabContents* source);
119 119
120 // Check whether this contents is inside a window dedicated to running a web 120 // Check whether this contents is inside a window dedicated to running a web
121 // application. 121 // application.
122 virtual bool IsApplication() const; 122 virtual bool IsApplication() const;
123 123
124 // Detach the given tab and convert it to a "webapp" view. The tab must be 124 // Detach the given tab and convert it to a "webapp" view. The tab must be
125 // a TabContents with a valid WebApp set. 125 // a TabContents with a valid WebApp set.
126 virtual void ConvertContentsToApplication(TabContents* source); 126 virtual void ConvertContentsToApplication(TabContents* source);
127 127
128 // Whether this tab can be blurred through a javascript obj.blur()
129 // call. ConstrainedWindows shouldn't be able to be blurred.
130 virtual bool CanBlur() const;
131
128 // Whether the specified tab can be reloaded. 132 // Whether the specified tab can be reloaded.
129 // Reloading can be disabled e. g. for the DevTools window. 133 // Reloading can be disabled e. g. for the DevTools window.
130 virtual bool CanReloadContents(TabContents* source) const; 134 virtual bool CanReloadContents(TabContents* source) const;
131 135
132 // Return the rect where to display the resize corner, if any, otherwise 136 // Return the rect where to display the resize corner, if any, otherwise
133 // an empty rect. 137 // an empty rect.
134 virtual gfx::Rect GetRootWindowResizerRect() const; 138 virtual gfx::Rect GetRootWindowResizerRect() const;
135 139
136 // Show a dialog with HTML content. |delegate| contains a pointer to the 140 // Show a dialog with HTML content. |delegate| contains a pointer to the
137 // delegate who knows how to display the dialog (which file URL and JSON 141 // delegate who knows how to display the dialog (which file URL and JSON
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 269
266 // Notification that the preferred size of the contents has changed. 270 // Notification that the preferred size of the contents has changed.
267 // Only called if ShouldEnablePreferredSizeNotifications() returns true. 271 // Only called if ShouldEnablePreferredSizeNotifications() returns true.
268 virtual void UpdatePreferredSize(const gfx::Size& pref_size); 272 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
269 273
270 protected: 274 protected:
271 ~TabContentsDelegate(); 275 ~TabContentsDelegate();
272 }; 276 };
273 277
274 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 278 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698