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

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

Issue 42512: Make the bookmarks bar disappear when the load after the new tab page commits... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 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_WEB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 RenderViewHost* render_view_host() const { 103 RenderViewHost* render_view_host() const {
104 return render_manager_.current_host(); 104 return render_manager_.current_host();
105 } 105 }
106 106
107 // The WebContentsView will never change and is guaranteed non-NULL. 107 // The WebContentsView will never change and is guaranteed non-NULL.
108 WebContentsView* view() const { 108 WebContentsView* view() const {
109 return view_.get(); 109 return view_.get();
110 } 110 }
111 111
112 #ifdef UNIT_TEST
113 // Expose the render manager for testing.
114 RenderViewHostManager* render_manager() { return &render_manager_; }
115 #endif
116
112 // Page state getters & setters ---------------------------------------------- 117 // Page state getters & setters ----------------------------------------------
113 118
114 bool is_starred() const { return is_starred_; } 119 bool is_starred() const { return is_starred_; }
115 120
116 const std::wstring& encoding() const { return encoding_; } 121 const std::wstring& encoding() const { return encoding_; }
117 void set_encoding(const std::wstring& encoding) { 122 void set_encoding(const std::wstring& encoding) {
118 encoding_ = encoding; 123 encoding_ = encoding;
119 } 124 }
120 125
121 // Window stuff -------------------------------------------------------------- 126 // Window stuff --------------------------------------------------------------
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 RenderViewHost* render_view_host) { 447 RenderViewHost* render_view_host) {
443 RenderViewGone(render_view_host); 448 RenderViewGone(render_view_host);
444 } 449 }
445 virtual void UpdateRenderViewSizeForRenderManager(); 450 virtual void UpdateRenderViewSizeForRenderManager();
446 virtual void NotifySwappedFromRenderManager() { 451 virtual void NotifySwappedFromRenderManager() {
447 NotifySwapped(); 452 NotifySwapped();
448 } 453 }
449 virtual NavigationController* GetControllerForRenderManager() { 454 virtual NavigationController* GetControllerForRenderManager() {
450 return controller(); 455 return controller();
451 } 456 }
457 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url);
452 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager(); 458 virtual NavigationEntry* GetLastCommittedNavigationEntryForRenderManager();
453 459
454 // Initializes the given renderer if necessary and creates the view ID 460 // Initializes the given renderer if necessary and creates the view ID
455 // corresponding to this view host. If this method is not called and the 461 // corresponding to this view host. If this method is not called and the
456 // process is not shared, then the WebContents will act as though the renderer 462 // process is not shared, then the WebContents will act as though the renderer
457 // is not running (i.e., it will render "sad tab"). This method is 463 // is not running (i.e., it will render "sad tab"). This method is
458 // automatically called from LoadURL. 464 // automatically called from LoadURL.
459 // 465 //
460 // If you are attaching to an already-existing RenderView, you should call 466 // If you are attaching to an already-existing RenderView, you should call
461 // InitWithExistingID. 467 // InitWithExistingID.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 634
629 // AutofillManager, lazily created. 635 // AutofillManager, lazily created.
630 scoped_ptr<AutofillManager> autofill_manager_; 636 scoped_ptr<AutofillManager> autofill_manager_;
631 637
632 // PasswordManager, lazily created. 638 // PasswordManager, lazily created.
633 scoped_ptr<PasswordManager> password_manager_; 639 scoped_ptr<PasswordManager> password_manager_;
634 640
635 // PluginInstaller, lazily created. 641 // PluginInstaller, lazily created.
636 scoped_ptr<PluginInstaller> plugin_installer_; 642 scoped_ptr<PluginInstaller> plugin_installer_;
637 643
638 // When the current page is a DOM UI page, this will point to the specific
639 // DOMUI object handling it. When we don't have a DOM UI page, this will be
640 // null.
641 scoped_ptr<DOMUI> dom_ui_;
642
643 // Handles downloading favicons. 644 // Handles downloading favicons.
644 FavIconHelper fav_icon_helper_; 645 FavIconHelper fav_icon_helper_;
645 646
646 // Dialog box used for choosing files to upload from file form fields. 647 // Dialog box used for choosing files to upload from file form fields.
647 scoped_refptr<SelectFileDialog> select_file_dialog_; 648 scoped_refptr<SelectFileDialog> select_file_dialog_;
648 649
649 // The time that the last javascript message was dismissed. 650 // The time that the last javascript message was dismissed.
650 base::TimeTicks last_javascript_message_dismissal_; 651 base::TimeTicks last_javascript_message_dismissal_;
651 652
652 // True if the user has decided to block future javascript messages. This is 653 // True if the user has decided to block future javascript messages. This is
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 693
693 // The last find result. This object contains details about the number of 694 // The last find result. This object contains details about the number of
694 // matches, the find selection rectangle, etc. The UI can access this 695 // matches, the find selection rectangle, etc. The UI can access this
695 // information to build its presentation. 696 // information to build its presentation.
696 FindNotificationDetails find_result_; 697 FindNotificationDetails find_result_;
697 698
698 DISALLOW_COPY_AND_ASSIGN(WebContents); 699 DISALLOW_COPY_AND_ASSIGN(WebContents);
699 }; 700 };
700 701
701 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ 702 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698