OLD | NEW |
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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 575 |
576 // Helper functions for sending notifications. | 576 // Helper functions for sending notifications. |
577 void NotifySwapped(); | 577 void NotifySwapped(); |
578 void NotifyConnected(); | 578 void NotifyConnected(); |
579 void NotifyDisconnected(); | 579 void NotifyDisconnected(); |
580 | 580 |
581 // If params has a searchable form, this tries to create a new keyword. | 581 // If params has a searchable form, this tries to create a new keyword. |
582 void GenerateKeywordIfNecessary( | 582 void GenerateKeywordIfNecessary( |
583 const ViewHostMsg_FrameNavigate_Params& params); | 583 const ViewHostMsg_FrameNavigate_Params& params); |
584 | 584 |
| 585 // Returns the DOMUI for the current state of the tab. This will either be |
| 586 // the pending DOMUI, the committed DOMUI, or NULL. |
| 587 DOMUI* GetDOMUIForCurrentState(); |
| 588 |
585 // Data ---------------------------------------------------------------------- | 589 // Data ---------------------------------------------------------------------- |
586 | 590 |
587 // The corresponding view. | 591 // The corresponding view. |
588 scoped_ptr<WebContentsView> view_; | 592 scoped_ptr<WebContentsView> view_; |
589 | 593 |
590 // Manages creation and swapping of render views. | 594 // Manages creation and swapping of render views. |
591 RenderViewHostManager render_manager_; | 595 RenderViewHostManager render_manager_; |
592 | 596 |
593 // For testing, passed to new RenderViewHost managers. | 597 // For testing, passed to new RenderViewHost managers. |
594 RenderViewHostFactory* render_view_factory_; | 598 RenderViewHostFactory* render_view_factory_; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 | 698 |
695 // The last find result. This object contains details about the number of | 699 // The last find result. This object contains details about the number of |
696 // matches, the find selection rectangle, etc. The UI can access this | 700 // matches, the find selection rectangle, etc. The UI can access this |
697 // information to build its presentation. | 701 // information to build its presentation. |
698 FindNotificationDetails find_result_; | 702 FindNotificationDetails find_result_; |
699 | 703 |
700 DISALLOW_COPY_AND_ASSIGN(WebContents); | 704 DISALLOW_COPY_AND_ASSIGN(WebContents); |
701 }; | 705 }; |
702 | 706 |
703 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ | 707 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_H_ |
OLD | NEW |