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

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

Issue 10696158: Rename WasRestored to WasShown across all uses. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Bring to ToT to commit Created 8 years, 4 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
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_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // is true, the view does not accept first responder status and instead 111 // is true, the view does not accept first responder status and instead
112 // manually becomes first responder when it receives a mouse down event. If 112 // manually becomes first responder when it receives a mouse down event. If
113 // |flag| is false, the view participates in the key-view chain as normal. 113 // |flag| is false, the view participates in the key-view chain as normal.
114 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0; 114 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) = 0;
115 115
116 // Notifies the view that its enclosing window has changed visibility 116 // Notifies the view that its enclosing window has changed visibility
117 // (minimized/unminimized, app hidden/unhidden, etc). 117 // (minimized/unminimized, app hidden/unhidden, etc).
118 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for 118 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for
119 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding 119 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding
120 // message and renderer-side handling) can be removed in favor of using 120 // message and renderer-side handling) can be removed in favor of using
121 // WasHidden/WasRestored. 121 // WasHidden/WasShown.
122 virtual void SetWindowVisibility(bool visible) = 0; 122 virtual void SetWindowVisibility(bool visible) = 0;
123 123
124 // Informs the view that its containing window's frame changed. 124 // Informs the view that its containing window's frame changed.
125 virtual void WindowFrameChanged() = 0; 125 virtual void WindowFrameChanged() = 0;
126 #endif // defined(OS_MACOSX) 126 #endif // defined(OS_MACOSX)
127 127
128 #if defined(TOOLKIT_GTK) 128 #if defined(TOOLKIT_GTK)
129 // Gets the event for the last mouse down. 129 // Gets the event for the last mouse down.
130 virtual GdkEventButton* GetLastMouseDown() = 0; 130 virtual GdkEventButton* GetLastMouseDown() = 0;
131 // Builds a submenu containing all the gtk input method commands. 131 // Builds a submenu containing all the gtk input method commands.
(...skipping 17 matching lines...) Expand all
149 // Return value indicates whether the mouse is locked successfully or not. 149 // Return value indicates whether the mouse is locked successfully or not.
150 virtual bool LockMouse() = 0; 150 virtual bool LockMouse() = 0;
151 virtual void UnlockMouse() = 0; 151 virtual void UnlockMouse() = 0;
152 // Returns true if the mouse pointer is currently locked. 152 // Returns true if the mouse pointer is currently locked.
153 virtual bool IsMouseLocked() = 0; 153 virtual bool IsMouseLocked() = 0;
154 }; 154 };
155 155
156 } // namespace content 156 } // namespace content
157 157
158 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ 158 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « content/port/browser/render_widget_host_view_port.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698