OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ |
7 | 7 |
8 #include "content/public/browser/web_contents_view.h" | 8 #include "content/public/browser/web_contents_view.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 17 matching lines...) Expand all Loading... |
28 RenderWidgetHost* render_widget_host) = 0; | 28 RenderWidgetHost* render_widget_host) = 0; |
29 | 29 |
30 // Creates a new View that holds a popup and receives messages for it. | 30 // Creates a new View that holds a popup and receives messages for it. |
31 virtual RenderWidgetHostView* CreateViewForPopupWidget( | 31 virtual RenderWidgetHostView* CreateViewForPopupWidget( |
32 RenderWidgetHost* render_widget_host) = 0; | 32 RenderWidgetHost* render_widget_host) = 0; |
33 | 33 |
34 // Sets the page title for the native widgets corresponding to the view. This | 34 // Sets the page title for the native widgets corresponding to the view. This |
35 // is not strictly necessary and isn't expected to be displayed anywhere, but | 35 // is not strictly necessary and isn't expected to be displayed anywhere, but |
36 // can aid certain debugging tools such as Spy++ on Windows where you are | 36 // can aid certain debugging tools such as Spy++ on Windows where you are |
37 // trying to find a specific window. | 37 // trying to find a specific window. |
38 virtual void SetPageTitle(const string16& title) = 0; | 38 virtual void SetPageTitle(const base::string16& title) = 0; |
39 | 39 |
40 // Invoked when the WebContents is notified that the RenderView has been | 40 // Invoked when the WebContents is notified that the RenderView has been |
41 // fully created. | 41 // fully created. |
42 virtual void RenderViewCreated(RenderViewHost* host) = 0; | 42 virtual void RenderViewCreated(RenderViewHost* host) = 0; |
43 | 43 |
44 // Invoked when the WebContents is notified that the RenderView has been | 44 // Invoked when the WebContents is notified that the RenderView has been |
45 // swapped in. | 45 // swapped in. |
46 virtual void RenderViewSwappedIn(RenderViewHost* host) = 0; | 46 virtual void RenderViewSwappedIn(RenderViewHost* host) = 0; |
47 | 47 |
48 // Invoked to enable/disable overscroll gesture navigation. | 48 // Invoked to enable/disable overscroll gesture navigation. |
49 virtual void SetOverscrollControllerEnabled(bool enabled) = 0; | 49 virtual void SetOverscrollControllerEnabled(bool enabled) = 0; |
50 | 50 |
51 #if defined(OS_MACOSX) | 51 #if defined(OS_MACOSX) |
52 // If we close the tab while a UI control is in an event-tracking | 52 // If we close the tab while a UI control is in an event-tracking |
53 // loop, the control may message freed objects and crash. | 53 // loop, the control may message freed objects and crash. |
54 // WebContents::Close() calls IsEventTracking(), and if it returns | 54 // WebContents::Close() calls IsEventTracking(), and if it returns |
55 // true CloseTabAfterEventTracking() is called and the close is not | 55 // true CloseTabAfterEventTracking() is called and the close is not |
56 // completed. | 56 // completed. |
57 virtual bool IsEventTracking() const = 0; | 57 virtual bool IsEventTracking() const = 0; |
58 virtual void CloseTabAfterEventTracking() = 0; | 58 virtual void CloseTabAfterEventTracking() = 0; |
59 #endif | 59 #endif |
60 }; | 60 }; |
61 | 61 |
62 } // namespace content | 62 } // namespace content |
63 | 63 |
64 #endif // CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ | 64 #endif // CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ |
OLD | NEW |