| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 void DidGetRedirectForResourceRequest( | 204 void DidGetRedirectForResourceRequest( |
| 205 const ResourceRedirectDetails& details); | 205 const ResourceRedirectDetails& details); |
| 206 | 206 |
| 207 // Notify observers that the web contents has been focused. | 207 // Notify observers that the web contents has been focused. |
| 208 void NotifyWebContentsFocused(); | 208 void NotifyWebContentsFocused(); |
| 209 | 209 |
| 210 WebContentsView* GetView() const; | 210 WebContentsView* GetView() const; |
| 211 | 211 |
| 212 void OnScreenOrientationChange(); | 212 void OnScreenOrientationChange(); |
| 213 | 213 |
| 214 ScreenOrientationProvider* GetScreenOrientationProviderForTesting() const { | 214 ScreenOrientationProvider* GetScreenOrientationProvider() const { |
| 215 return screen_orientation_provider_.get(); | 215 return screen_orientation_provider_.get(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 bool should_normally_be_visible() { return should_normally_be_visible_; } | 218 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 219 | 219 |
| 220 // Indicate if the window has been occluded, and pass this to the views, only | 220 // Indicate if the window has been occluded, and pass this to the views, only |
| 221 // if there is no active capture going on (otherwise it is dropped on the | 221 // if there is no active capture going on (otherwise it is dropped on the |
| 222 // floor). | 222 // floor). |
| 223 void WasOccluded(); | 223 void WasOccluded(); |
| 224 void WasUnOccluded(); | 224 void WasUnOccluded(); |
| (...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 // Adds/removes a callback called on creation of each new WebContents. | 1519 // Adds/removes a callback called on creation of each new WebContents. |
| 1520 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1520 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1521 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1521 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1522 | 1522 |
| 1523 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1523 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1524 }; | 1524 }; |
| 1525 | 1525 |
| 1526 } // namespace content | 1526 } // namespace content |
| 1527 | 1527 |
| 1528 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1528 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |