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

Side by Side Diff: content/public/browser/web_contents_view.h

Issue 9956154: TabContents -> WebContentsImpl, part 16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/shell/shell_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // WebContents without the special code. 83 // WebContents without the special code.
84 virtual void SizeContents(const gfx::Size& size) = 0; 84 virtual void SizeContents(const gfx::Size& size) = 0;
85 85
86 // Invoked when the WebContents is notified that the RenderView has been 86 // Invoked when the WebContents is notified that the RenderView has been
87 // fully created. 87 // fully created.
88 virtual void RenderViewCreated(RenderViewHost* host) = 0; 88 virtual void RenderViewCreated(RenderViewHost* host) = 0;
89 89
90 // Sets focus to the native widget for this tab. 90 // Sets focus to the native widget for this tab.
91 virtual void Focus() = 0; 91 virtual void Focus() = 0;
92 92
93 // Sets focus to the appropriate element when the tab contents is shown the 93 // Sets focus to the appropriate element when the WebContents is shown the
94 // first time. 94 // first time.
95 virtual void SetInitialFocus() = 0; 95 virtual void SetInitialFocus() = 0;
96 96
97 // Stores the currently focused view. 97 // Stores the currently focused view.
98 virtual void StoreFocus() = 0; 98 virtual void StoreFocus() = 0;
99 99
100 // Restores focus to the last focus view. If StoreFocus has not yet been 100 // Restores focus to the last focus view. If StoreFocus has not yet been
101 // invoked, SetInitialFocus is invoked. 101 // invoked, SetInitialFocus is invoked.
102 virtual void RestoreFocus() = 0; 102 virtual void RestoreFocus() = 0;
103 103
104 // If we try to close the tab while a drag is in progress, we crash. These 104 // If we try to close the tab while a drag is in progress, we crash. These
105 // methods allow the tab contents to determine if a drag is in progress and 105 // methods allow the WebContents to determine if a drag is in progress and
106 // postpone the tab closing. 106 // postpone the tab closing.
107 virtual bool IsDoingDrag() const = 0; 107 virtual bool IsDoingDrag() const = 0;
108 virtual void CancelDragAndCloseTab() = 0; 108 virtual void CancelDragAndCloseTab() = 0;
109 109
110 // If we close the tab while a UI control is in an event-tracking 110 // If we close the tab while a UI control is in an event-tracking
111 // loop, the control may message freed objects and crash. 111 // loop, the control may message freed objects and crash.
112 // WebContents::Close() calls IsEventTracking(), and if it returns 112 // WebContents::Close() calls IsEventTracking(), and if it returns
113 // true CloseTabAfterEventTracking() is called and the close is not 113 // true CloseTabAfterEventTracking() is called and the close is not
114 // completed. 114 // completed.
115 virtual bool IsEventTracking() const = 0; 115 virtual bool IsEventTracking() const = 0;
116 virtual void CloseTabAfterEventTracking() = 0; 116 virtual void CloseTabAfterEventTracking() = 0;
117 117
118 // Get the bounds of the View, relative to the parent. 118 // Get the bounds of the View, relative to the parent.
119 // TODO(beng): Return a rect rather than using an out param. 119 // TODO(beng): Return a rect rather than using an out param.
120 virtual void GetViewBounds(gfx::Rect* out) const = 0; 120 virtual void GetViewBounds(gfx::Rect* out) const = 0;
121 }; 121 };
122 122
123 } // namespace content 123 } // namespace content
124 124
125 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ 125 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/shell/shell_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698