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

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

Issue 391036: Forbid reloading the Inspector window (Closed)
Patch Set: Follow codereview Created 10 years, 12 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "app/gfx/native_widget_types.h" 10 #include "app/gfx/native_widget_types.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual bool IsApplication() const { return false; } 116 virtual bool IsApplication() const { return false; }
117 117
118 // Detach the given tab and convert it to a "webapp" view. The tab must be 118 // Detach the given tab and convert it to a "webapp" view. The tab must be
119 // a TabContents with a valid WebApp set. 119 // a TabContents with a valid WebApp set.
120 virtual void ConvertContentsToApplication(TabContents* source) { } 120 virtual void ConvertContentsToApplication(TabContents* source) { }
121 121
122 // Whether this tab can be blurred through a javascript obj.blur() 122 // Whether this tab can be blurred through a javascript obj.blur()
123 // call. ConstrainedWindows shouldn't be able to be blurred. 123 // call. ConstrainedWindows shouldn't be able to be blurred.
124 virtual bool CanBlur() const { return true; } 124 virtual bool CanBlur() const { return true; }
125 125
126 // Whether the specified tab can be reloaded.
127 // Reloading can be disabled e. g. for the DevTools window.
128 virtual bool CanReloadContents(TabContents* source) const { return true; }
129
126 // Return the rect where to display the resize corner, if any, otherwise 130 // Return the rect where to display the resize corner, if any, otherwise
127 // an empty rect. 131 // an empty rect.
128 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); } 132 virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); }
129 133
130 // Show a dialog with HTML content. |delegate| contains a pointer to the 134 // Show a dialog with HTML content. |delegate| contains a pointer to the
131 // delegate who knows how to display the dialog (which file URL and JSON 135 // delegate who knows how to display the dialog (which file URL and JSON
132 // string input to use during initialization). |parent_window| is the window 136 // string input to use during initialization). |parent_window| is the window
133 // that should be parent of the dialog, or NULL for the default. 137 // that should be parent of the dialog, or NULL for the default.
134 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 138 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
135 gfx::NativeWindow parent_window) { } 139 gfx::NativeWindow parent_window) { }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 virtual Browser* GetBrowser() { return NULL; } 260 virtual Browser* GetBrowser() { return NULL; }
257 261
258 // Returns the widget framing the view containing the tab contents. 262 // Returns the widget framing the view containing the tab contents.
259 virtual gfx::NativeWindow GetFrameNativeWindow() { return NULL; } 263 virtual gfx::NativeWindow GetFrameNativeWindow() { return NULL; }
260 264
261 protected: 265 protected:
262 ~TabContentsDelegate() {} 266 ~TabContentsDelegate() {}
263 }; 267 };
264 268
265 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 269 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698