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

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

Issue 42623: 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 635
630 // AutofillManager, lazily created. 636 // AutofillManager, lazily created.
631 scoped_ptr<AutofillManager> autofill_manager_; 637 scoped_ptr<AutofillManager> autofill_manager_;
632 638
633 // PasswordManager, lazily created. 639 // PasswordManager, lazily created.
634 scoped_ptr<PasswordManager> password_manager_; 640 scoped_ptr<PasswordManager> password_manager_;
635 641
636 // PluginInstaller, lazily created. 642 // PluginInstaller, lazily created.
637 scoped_ptr<PluginInstaller> plugin_installer_; 643 scoped_ptr<PluginInstaller> plugin_installer_;
638 644
639 // When the current page is a DOM UI page, this will point to the specific
640 // DOMUI object handling it. When we don't have a DOM UI page, this will be
641 // null.
642 scoped_ptr<DOMUI> dom_ui_;
643
644 // Handles downloading favicons. 645 // Handles downloading favicons.
645 FavIconHelper fav_icon_helper_; 646 FavIconHelper fav_icon_helper_;
646 647
647 // Dialog box used for choosing files to upload from file form fields. 648 // Dialog box used for choosing files to upload from file form fields.
648 scoped_refptr<SelectFileDialog> select_file_dialog_; 649 scoped_refptr<SelectFileDialog> select_file_dialog_;
649 650
650 // The time that the last javascript message was dismissed. 651 // The time that the last javascript message was dismissed.
651 base::TimeTicks last_javascript_message_dismissal_; 652 base::TimeTicks last_javascript_message_dismissal_;
652 653
653 // True if the user has decided to block future javascript messages. This is 654 // 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
693 694
694 // The last find result. This object contains details about the number of 695 // The last find result. This object contains details about the number of
695 // matches, the find selection rectangle, etc. The UI can access this 696 // matches, the find selection rectangle, etc. The UI can access this
696 // information to build its presentation. 697 // information to build its presentation.
697 FindNotificationDetails find_result_; 698 FindNotificationDetails find_result_;
698 699
699 DISALLOW_COPY_AND_ASSIGN(WebContents); 700 DISALLOW_COPY_AND_ASSIGN(WebContents);
700 }; 701 };
701 702
702 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ 703 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_host_manager.cc ('k') | chrome/browser/tab_contents/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698