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

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

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual bool IsApplication() const; 139 virtual bool IsApplication() const;
140 140
141 // Detach the given tab and convert it to a "webapp" view. The tab must be 141 // Detach the given tab and convert it to a "webapp" view. The tab must be
142 // a TabContents with a valid WebApp set. 142 // a TabContents with a valid WebApp set.
143 virtual void ConvertContentsToApplication(TabContents* source); 143 virtual void ConvertContentsToApplication(TabContents* source);
144 144
145 // Whether the specified tab can be reloaded. 145 // Whether the specified tab can be reloaded.
146 // Reloading can be disabled e. g. for the DevTools window. 146 // Reloading can be disabled e. g. for the DevTools window.
147 virtual bool CanReloadContents(TabContents* source) const; 147 virtual bool CanReloadContents(TabContents* source) const;
148 148
149 // Return the rect where to display the resize corner, if any, otherwise
150 // an empty rect.
151 virtual gfx::Rect GetRootWindowResizerRect() const;
152
153 // Show a dialog with HTML content. |delegate| contains a pointer to the 149 // Show a dialog with HTML content. |delegate| contains a pointer to the
154 // delegate who knows how to display the dialog (which file URL and JSON 150 // delegate who knows how to display the dialog (which file URL and JSON
155 // string input to use during initialization). |parent_window| is the window 151 // string input to use during initialization). |parent_window| is the window
156 // that should be parent of the dialog, or NULL for the default. 152 // that should be parent of the dialog, or NULL for the default.
157 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 153 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
158 gfx::NativeWindow parent_window); 154 gfx::NativeWindow parent_window);
159 155
160 // Tells us that we've finished firing this tab's beforeunload event. 156 // Tells us that we've finished firing this tab's beforeunload event.
161 // The proceed bool tells us whether the user chose to proceed closing the 157 // The proceed bool tells us whether the user chose to proceed closing the
162 // tab. Returns true if the tab can continue on firing it's unload event. 158 // tab. Returns true if the tab can continue on firing it's unload event.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 305
310 // Notifies the delegate that the content restrictions for this tab has 306 // Notifies the delegate that the content restrictions for this tab has
311 // changed. 307 // changed.
312 virtual void ContentRestrictionsChanged(TabContents* source); 308 virtual void ContentRestrictionsChanged(TabContents* source);
313 309
314 protected: 310 protected:
315 virtual ~TabContentsDelegate(); 311 virtual ~TabContentsDelegate();
316 }; 312 };
317 313
318 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 314 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698