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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 void SetAudioMuted(bool mute) override; | 320 void SetAudioMuted(bool mute) override; |
321 bool IsConnectedToBluetoothDevice() const override; | 321 bool IsConnectedToBluetoothDevice() const override; |
322 bool IsCrashed() const override; | 322 bool IsCrashed() const override; |
323 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 323 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
324 base::TerminationStatus GetCrashedStatus() const override; | 324 base::TerminationStatus GetCrashedStatus() const override; |
325 int GetCrashedErrorCode() const override; | 325 int GetCrashedErrorCode() const override; |
326 bool IsBeingDestroyed() const override; | 326 bool IsBeingDestroyed() const override; |
327 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; | 327 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; |
328 base::TimeTicks GetLastActiveTime() const override; | 328 base::TimeTicks GetLastActiveTime() const override; |
329 void SetLastActiveTime(base::TimeTicks last_active_time) override; | 329 void SetLastActiveTime(base::TimeTicks last_active_time) override; |
| 330 base::TimeTicks GetLastHiddenTime() const override; |
330 void WasShown() override; | 331 void WasShown() override; |
331 void WasHidden() override; | 332 void WasHidden() override; |
332 bool NeedToFireBeforeUnload() override; | 333 bool NeedToFireBeforeUnload() override; |
333 void DispatchBeforeUnload() override; | 334 void DispatchBeforeUnload() override; |
334 void AttachToOuterWebContentsFrame( | 335 void AttachToOuterWebContentsFrame( |
335 WebContents* outer_web_contents, | 336 WebContents* outer_web_contents, |
336 RenderFrameHost* outer_contents_frame) override; | 337 RenderFrameHost* outer_contents_frame) override; |
337 void Stop() override; | 338 void Stop() override; |
338 WebContents* Clone() override; | 339 WebContents* Clone() override; |
339 void ReloadFocusedFrame(bool bypass_cache) override; | 340 void ReloadFocusedFrame(bool bypass_cache) override; |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. | 1264 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. |
1264 bool is_showing_before_unload_dialog_; | 1265 bool is_showing_before_unload_dialog_; |
1265 | 1266 |
1266 // Settings that get passed to the renderer process. | 1267 // Settings that get passed to the renderer process. |
1267 RendererPreferences renderer_preferences_; | 1268 RendererPreferences renderer_preferences_; |
1268 | 1269 |
1269 // The time that this WebContents was last made active. The initial value is | 1270 // The time that this WebContents was last made active. The initial value is |
1270 // the WebContents creation time. | 1271 // the WebContents creation time. |
1271 base::TimeTicks last_active_time_; | 1272 base::TimeTicks last_active_time_; |
1272 | 1273 |
| 1274 // The time that this WebContents was last made hidden. The initial value is |
| 1275 // zero. |
| 1276 base::TimeTicks last_hidden_time_; |
| 1277 |
1273 // See description above setter. | 1278 // See description above setter. |
1274 bool closed_by_user_gesture_; | 1279 bool closed_by_user_gesture_; |
1275 | 1280 |
1276 // Minimum/maximum zoom percent. | 1281 // Minimum/maximum zoom percent. |
1277 int minimum_zoom_percent_; | 1282 int minimum_zoom_percent_; |
1278 int maximum_zoom_percent_; | 1283 int maximum_zoom_percent_; |
1279 | 1284 |
1280 // Used to correctly handle integer zooming through a smooth scroll device. | 1285 // Used to correctly handle integer zooming through a smooth scroll device. |
1281 float zoom_scroll_remainder_; | 1286 float zoom_scroll_remainder_; |
1282 | 1287 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 // Adds/removes a callback called on creation of each new WebContents. | 1454 // Adds/removes a callback called on creation of each new WebContents. |
1450 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1455 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1451 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1456 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1452 | 1457 |
1453 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1458 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1454 }; | 1459 }; |
1455 | 1460 |
1456 } // namespace content | 1461 } // namespace content |
1457 | 1462 |
1458 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1463 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |