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

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 #include <vector> 10 #include <vector>
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 virtual bool IsApplication() const; 140 virtual bool IsApplication() const;
141 141
142 // Detach the given tab and convert it to a "webapp" view. The tab must be 142 // Detach the given tab and convert it to a "webapp" view. The tab must be
143 // a TabContents with a valid WebApp set. 143 // a TabContents with a valid WebApp set.
144 virtual void ConvertContentsToApplication(TabContents* source); 144 virtual void ConvertContentsToApplication(TabContents* source);
145 145
146 // Whether the specified tab can be reloaded. 146 // Whether the specified tab can be reloaded.
147 // Reloading can be disabled e. g. for the DevTools window. 147 // Reloading can be disabled e. g. for the DevTools window.
148 virtual bool CanReloadContents(TabContents* source) const; 148 virtual bool CanReloadContents(TabContents* source) const;
149 149
150 // Return the rect where to display the resize corner, if any, otherwise
151 // an empty rect.
152 virtual gfx::Rect GetRootWindowResizerRect() const;
153
154 // Show a dialog with HTML content. |delegate| contains a pointer to the 150 // Show a dialog with HTML content. |delegate| contains a pointer to the
155 // delegate who knows how to display the dialog (which file URL and JSON 151 // delegate who knows how to display the dialog (which file URL and JSON
156 // string input to use during initialization). |parent_window| is the window 152 // string input to use during initialization). |parent_window| is the window
157 // that should be parent of the dialog, or NULL for the default. 153 // that should be parent of the dialog, or NULL for the default.
158 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate, 154 virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
159 gfx::NativeWindow parent_window); 155 gfx::NativeWindow parent_window);
160 156
161 // Tells us that we've finished firing this tab's beforeunload event. 157 // Tells us that we've finished firing this tab's beforeunload event.
162 // The proceed bool tells us whether the user chose to proceed closing the 158 // The proceed bool tells us whether the user chose to proceed closing the
163 // tab. Returns true if the tab can continue on firing it's unload event. 159 // tab. Returns true if the tab can continue on firing it's unload event.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 310
315 // Notifies the delegate that the content restrictions for this tab has 311 // Notifies the delegate that the content restrictions for this tab has
316 // changed. 312 // changed.
317 virtual void ContentRestrictionsChanged(TabContents* source); 313 virtual void ContentRestrictionsChanged(TabContents* source);
318 314
319 protected: 315 protected:
320 virtual ~TabContentsDelegate(); 316 virtual ~TabContentsDelegate();
321 }; 317 };
322 318
323 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 319 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698