| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 void IncrementCapturerCount(const gfx::Size& capture_size) override; | 268 void IncrementCapturerCount(const gfx::Size& capture_size) override; |
| 269 void DecrementCapturerCount() override; | 269 void DecrementCapturerCount() override; |
| 270 int GetCapturerCount() const override; | 270 int GetCapturerCount() const override; |
| 271 bool IsAudioMuted() const override; | 271 bool IsAudioMuted() const override; |
| 272 void SetAudioMuted(bool mute) override; | 272 void SetAudioMuted(bool mute) override; |
| 273 bool IsCrashed() const override; | 273 bool IsCrashed() const override; |
| 274 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 274 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
| 275 base::TerminationStatus GetCrashedStatus() const override; | 275 base::TerminationStatus GetCrashedStatus() const override; |
| 276 bool IsBeingDestroyed() const override; | 276 bool IsBeingDestroyed() const override; |
| 277 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; | 277 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; |
| 278 base::Time GetLastActiveTime() const override; | 278 base::TimeTicks GetLastActiveTime() const override; |
| 279 void WasShown() override; | 279 void WasShown() override; |
| 280 void WasHidden() override; | 280 void WasHidden() override; |
| 281 bool NeedToFireBeforeUnload() override; | 281 bool NeedToFireBeforeUnload() override; |
| 282 void DispatchBeforeUnload(bool for_cross_site_transition) override; | 282 void DispatchBeforeUnload(bool for_cross_site_transition) override; |
| 283 void Stop() override; | 283 void Stop() override; |
| 284 WebContents* Clone() override; | 284 WebContents* Clone() override; |
| 285 void ReloadFocusedFrame(bool ignore_cache) override; | 285 void ReloadFocusedFrame(bool ignore_cache) override; |
| 286 void Undo() override; | 286 void Undo() override; |
| 287 void Redo() override; | 287 void Redo() override; |
| 288 void Cut() override; | 288 void Cut() override; |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 // Set to true when there is an active "before unload" dialog. When true, | 1142 // Set to true when there is an active "before unload" dialog. When true, |
| 1143 // we've forced the throbber to start in Navigate, and we need to remember to | 1143 // we've forced the throbber to start in Navigate, and we need to remember to |
| 1144 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. | 1144 // turn it off in OnJavaScriptMessageBoxClosed if the navigation is canceled. |
| 1145 bool is_showing_before_unload_dialog_; | 1145 bool is_showing_before_unload_dialog_; |
| 1146 | 1146 |
| 1147 // Settings that get passed to the renderer process. | 1147 // Settings that get passed to the renderer process. |
| 1148 RendererPreferences renderer_preferences_; | 1148 RendererPreferences renderer_preferences_; |
| 1149 | 1149 |
| 1150 // The time that this WebContents was last made active. The initial value is | 1150 // The time that this WebContents was last made active. The initial value is |
| 1151 // the WebContents creation time. | 1151 // the WebContents creation time. |
| 1152 base::Time last_active_time_; | 1152 base::TimeTicks last_active_time_; |
| 1153 | 1153 |
| 1154 // See description above setter. | 1154 // See description above setter. |
| 1155 bool closed_by_user_gesture_; | 1155 bool closed_by_user_gesture_; |
| 1156 | 1156 |
| 1157 // Minimum/maximum zoom percent. | 1157 // Minimum/maximum zoom percent. |
| 1158 int minimum_zoom_percent_; | 1158 int minimum_zoom_percent_; |
| 1159 int maximum_zoom_percent_; | 1159 int maximum_zoom_percent_; |
| 1160 | 1160 |
| 1161 // The intrinsic size of the page. | 1161 // The intrinsic size of the page. |
| 1162 gfx::Size preferred_size_; | 1162 gfx::Size preferred_size_; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 // Adds/removes a callback called on creation of each new WebContents. | 1285 // Adds/removes a callback called on creation of each new WebContents. |
| 1286 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1286 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1287 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1287 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1288 | 1288 |
| 1289 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1289 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1290 }; | 1290 }; |
| 1291 | 1291 |
| 1292 } // namespace content | 1292 } // namespace content |
| 1293 | 1293 |
| 1294 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1294 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |