| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 virtual bool WillNotifyDisconnection() const OVERRIDE; | 263 virtual bool WillNotifyDisconnection() const OVERRIDE; |
| 264 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; | 264 virtual void SetOverrideEncoding(const std::string& encoding) OVERRIDE; |
| 265 virtual void ResetOverrideEncoding() OVERRIDE; | 265 virtual void ResetOverrideEncoding() OVERRIDE; |
| 266 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; | 266 virtual RendererPreferences* GetMutableRendererPrefs() OVERRIDE; |
| 267 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; | 267 virtual void SetNewTabStartTime(const base::TimeTicks& time) OVERRIDE; |
| 268 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; | 268 virtual base::TimeTicks GetNewTabStartTime() const OVERRIDE; |
| 269 virtual void Close() OVERRIDE; | 269 virtual void Close() OVERRIDE; |
| 270 virtual void OnCloseStarted() OVERRIDE; | 270 virtual void OnCloseStarted() OVERRIDE; |
| 271 virtual void OnCloseCanceled() OVERRIDE; | 271 virtual void OnCloseCanceled() OVERRIDE; |
| 272 virtual void OnUnloadStarted() OVERRIDE; | 272 virtual void OnUnloadStarted() OVERRIDE; |
| 273 virtual void OnUnloadAboutToDetach() OVERRIDE; |
| 273 virtual void OnUnloadDetachedStarted() OVERRIDE; | 274 virtual void OnUnloadDetachedStarted() OVERRIDE; |
| 274 virtual void SystemDragEnded() OVERRIDE; | 275 virtual void SystemDragEnded() OVERRIDE; |
| 275 virtual void UserGestureDone() OVERRIDE; | 276 virtual void UserGestureDone() OVERRIDE; |
| 276 virtual void SetClosedByUserGesture(bool value) OVERRIDE; | 277 virtual void SetClosedByUserGesture(bool value) OVERRIDE; |
| 277 virtual bool GetClosedByUserGesture() const OVERRIDE; | 278 virtual bool GetClosedByUserGesture() const OVERRIDE; |
| 279 virtual bool GetWebContentsDetachedToClose() const OVERRIDE; |
| 278 virtual double GetZoomLevel() const OVERRIDE; | 280 virtual double GetZoomLevel() const OVERRIDE; |
| 279 virtual int GetZoomPercent(bool* enable_increment, | 281 virtual int GetZoomPercent(bool* enable_increment, |
| 280 bool* enable_decrement) const OVERRIDE; | 282 bool* enable_decrement) const OVERRIDE; |
| 281 virtual void ViewSource() OVERRIDE; | 283 virtual void ViewSource() OVERRIDE; |
| 282 virtual void ViewFrameSource(const GURL& url, | 284 virtual void ViewFrameSource(const GURL& url, |
| 283 const PageState& page_state) OVERRIDE; | 285 const PageState& page_state) OVERRIDE; |
| 284 virtual int GetMinimumZoomPercent() const OVERRIDE; | 286 virtual int GetMinimumZoomPercent() const OVERRIDE; |
| 285 virtual int GetMaximumZoomPercent() const OVERRIDE; | 287 virtual int GetMaximumZoomPercent() const OVERRIDE; |
| 286 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 288 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 287 virtual int GetContentRestrictions() const OVERRIDE; | 289 virtual int GetContentRestrictions() const OVERRIDE; |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 | 877 |
| 876 // The time that we started to close this WebContents. | 878 // The time that we started to close this WebContents. |
| 877 base::TimeTicks close_start_time_; | 879 base::TimeTicks close_start_time_; |
| 878 | 880 |
| 879 // The time when onbeforeunload ended. | 881 // The time when onbeforeunload ended. |
| 880 base::TimeTicks before_unload_end_time_; | 882 base::TimeTicks before_unload_end_time_; |
| 881 | 883 |
| 882 // The time when the tab was removed from view during close. | 884 // The time when the tab was removed from view during close. |
| 883 base::TimeTicks unload_detached_start_time_; | 885 base::TimeTicks unload_detached_start_time_; |
| 884 | 886 |
| 887 // True if the tab was removed from a view during close. |
| 888 bool detached_as_part_of_unload_; |
| 889 |
| 885 // The time that this tab was last selected. | 890 // The time that this tab was last selected. |
| 886 base::TimeTicks last_selected_time_; | 891 base::TimeTicks last_selected_time_; |
| 887 | 892 |
| 888 // See description above setter. | 893 // See description above setter. |
| 889 bool closed_by_user_gesture_; | 894 bool closed_by_user_gesture_; |
| 890 | 895 |
| 891 // Minimum/maximum zoom percent. | 896 // Minimum/maximum zoom percent. |
| 892 int minimum_zoom_percent_; | 897 int minimum_zoom_percent_; |
| 893 int maximum_zoom_percent_; | 898 int maximum_zoom_percent_; |
| 894 // If true, the default zoom limits have been overriden for this tab, in which | 899 // If true, the default zoom limits have been overriden for this tab, in which |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 // Maps the ids of pending image downloads to their callbacks | 951 // Maps the ids of pending image downloads to their callbacks |
| 947 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 952 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
| 948 ImageDownloadMap image_download_map_; | 953 ImageDownloadMap image_download_map_; |
| 949 | 954 |
| 950 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 955 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 951 }; | 956 }; |
| 952 | 957 |
| 953 } // namespace content | 958 } // namespace content |
| 954 | 959 |
| 955 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 960 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |