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

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

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // Invoked when navigating to a pending entry. When invoked the 291 // Invoked when navigating to a pending entry. When invoked the
292 // NavigationController has configured its pending entry, but it has not yet 292 // NavigationController has configured its pending entry, but it has not yet
293 // been committed. 293 // been committed.
294 virtual void DidNavigateToPendingEntry(TabContents* tab); 294 virtual void DidNavigateToPendingEntry(TabContents* tab);
295 295
296 // Returns a pointer to a service to create JavaScript dialogs. The default 296 // Returns a pointer to a service to create JavaScript dialogs. The default
297 // pointer returned is to a stub service that marks all dialogs as suppressed 297 // pointer returned is to a stub service that marks all dialogs as suppressed
298 // and displays nothing. 298 // and displays nothing.
299 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 299 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator();
300 300
301 // Invoked when the preferred size of the contents has been changed.
302 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
brettw 2011/08/11 20:06:48 Although in your case you only have one TabContent
jianli 2011/08/12 00:55:26 Done.
303
301 protected: 304 protected:
302 virtual ~TabContentsDelegate(); 305 virtual ~TabContentsDelegate();
303 306
304 private: 307 private:
305 friend class TabContents; 308 friend class TabContents;
306 309
307 // Called when |this| becomes the TabContentsDelegate for |source|. 310 // Called when |this| becomes the TabContentsDelegate for |source|.
308 void Attach(TabContents* source); 311 void Attach(TabContents* source);
309 312
310 // Called when |this| is no longer the TabContentsDelegate for |source|. 313 // Called when |this| is no longer the TabContentsDelegate for |source|.
311 void Detach(TabContents* source); 314 void Detach(TabContents* source);
312 315
313 // The TabContents that this is currently a delegate for. 316 // The TabContents that this is currently a delegate for.
314 std::set<TabContents*> attached_contents_; 317 std::set<TabContents*> attached_contents_;
315 }; 318 };
316 319
317 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 320 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/update-preferred-size.html ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698