OLD | NEW |
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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 const ResourceRedirectDetails& details); | 175 const ResourceRedirectDetails& details); |
176 | 176 |
177 WebContentsView* GetView() const; | 177 WebContentsView* GetView() const; |
178 | 178 |
179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | 179 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { |
180 return screen_orientation_dispatcher_host_.get(); | 180 return screen_orientation_dispatcher_host_.get(); |
181 } | 181 } |
182 | 182 |
183 bool should_normally_be_visible() { return should_normally_be_visible_; } | 183 bool should_normally_be_visible() { return should_normally_be_visible_; } |
184 | 184 |
| 185 // Indicate if the window has been occluded, and pass this to the views, only |
| 186 // if there is no active capture going on (otherwise it is dropped on the |
| 187 // floor). |
| 188 void WasOccluded(); |
| 189 void WasUnOccluded(); |
| 190 |
185 // Broadcasts the mode change to all frames. | 191 // Broadcasts the mode change to all frames. |
186 void SetAccessibilityMode(AccessibilityMode mode); | 192 void SetAccessibilityMode(AccessibilityMode mode); |
187 | 193 |
188 // Adds the given accessibility mode to the current accessibility mode | 194 // Adds the given accessibility mode to the current accessibility mode |
189 // bitmap. | 195 // bitmap. |
190 void AddAccessibilityMode(AccessibilityMode mode); | 196 void AddAccessibilityMode(AccessibilityMode mode); |
191 | 197 |
192 // Removes the given accessibility mode from the current accessibility | 198 // Removes the given accessibility mode from the current accessibility |
193 // mode bitmap, managing the bits that are shared with other modes such | 199 // mode bitmap, managing the bits that are shared with other modes such |
194 // that a bit will only be turned off when all modes that depend on it | 200 // that a bit will only be turned off when all modes that depend on it |
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 // Adds/removes a callback called on creation of each new WebContents. | 1264 // Adds/removes a callback called on creation of each new WebContents. |
1259 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1265 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1260 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1266 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1261 | 1267 |
1262 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1268 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1263 }; | 1269 }; |
1264 | 1270 |
1265 } // namespace content | 1271 } // namespace content |
1266 | 1272 |
1267 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1273 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |