| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 RendererPreferences* GetMutableRendererPrefs() override; | 342 RendererPreferences* GetMutableRendererPrefs() override; |
| 343 void Close() override; | 343 void Close() override; |
| 344 void SystemDragEnded() override; | 344 void SystemDragEnded() override; |
| 345 void UserGestureDone() override; | 345 void UserGestureDone() override; |
| 346 void SetClosedByUserGesture(bool value) override; | 346 void SetClosedByUserGesture(bool value) override; |
| 347 bool GetClosedByUserGesture() const override; | 347 bool GetClosedByUserGesture() const override; |
| 348 void ViewSource() override; | 348 void ViewSource() override; |
| 349 void ViewFrameSource(const GURL& url, const PageState& page_state) override; | 349 void ViewFrameSource(const GURL& url, const PageState& page_state) override; |
| 350 int GetMinimumZoomPercent() const override; | 350 int GetMinimumZoomPercent() const override; |
| 351 int GetMaximumZoomPercent() const override; | 351 int GetMaximumZoomPercent() const override; |
| 352 void SetPageScale(float page_scale_factor) override; |
| 352 void ResetPageScale() override; | 353 void ResetPageScale() override; |
| 353 gfx::Size GetPreferredSize() const override; | 354 gfx::Size GetPreferredSize() const override; |
| 354 bool GotResponseToLockMouseRequest(bool allowed) override; | 355 bool GotResponseToLockMouseRequest(bool allowed) override; |
| 355 bool HasOpener() const override; | 356 bool HasOpener() const override; |
| 356 WebContentsImpl* GetOpener() const override; | 357 WebContentsImpl* GetOpener() const override; |
| 357 void DidChooseColorInColorChooser(SkColor color) override; | 358 void DidChooseColorInColorChooser(SkColor color) override; |
| 358 void DidEndColorChooser() override; | 359 void DidEndColorChooser() override; |
| 359 int DownloadImage(const GURL& url, | 360 int DownloadImage(const GURL& url, |
| 360 bool is_favicon, | 361 bool is_favicon, |
| 361 uint32_t max_bitmap_size, | 362 uint32_t max_bitmap_size, |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 const std::string& mime_type, | 825 const std::string& mime_type, |
| 825 ResourceType resource_type); | 826 ResourceType resource_type); |
| 826 void OnDidDisplayInsecureContent(); | 827 void OnDidDisplayInsecureContent(); |
| 827 void OnDidRunInsecureContent(const std::string& security_origin, | 828 void OnDidRunInsecureContent(const std::string& security_origin, |
| 828 const GURL& target_url); | 829 const GURL& target_url); |
| 829 void OnDocumentLoadedInFrame(); | 830 void OnDocumentLoadedInFrame(); |
| 830 void OnDidFinishLoad(const GURL& url); | 831 void OnDidFinishLoad(const GURL& url); |
| 831 void OnGoToEntryAtOffset(int offset); | 832 void OnGoToEntryAtOffset(int offset); |
| 832 void OnUpdateZoomLimits(int minimum_percent, | 833 void OnUpdateZoomLimits(int minimum_percent, |
| 833 int maximum_percent); | 834 int maximum_percent); |
| 835 void OnPageScaleFactorChanged(float page_scale_factor); |
| 834 void OnEnumerateDirectory(int request_id, const base::FilePath& path); | 836 void OnEnumerateDirectory(int request_id, const base::FilePath& path); |
| 835 | 837 |
| 836 void OnRegisterProtocolHandler(const std::string& protocol, | 838 void OnRegisterProtocolHandler(const std::string& protocol, |
| 837 const GURL& url, | 839 const GURL& url, |
| 838 const base::string16& title, | 840 const base::string16& title, |
| 839 bool user_gesture); | 841 bool user_gesture); |
| 840 void OnUnregisterProtocolHandler(const std::string& protocol, | 842 void OnUnregisterProtocolHandler(const std::string& protocol, |
| 841 const GURL& url, | 843 const GURL& url, |
| 842 bool user_gesture); | 844 bool user_gesture); |
| 843 void OnFindReply(int request_id, | 845 void OnFindReply(int request_id, |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 // Adds/removes a callback called on creation of each new WebContents. | 1331 // Adds/removes a callback called on creation of each new WebContents. |
| 1330 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1332 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1331 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1333 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1332 | 1334 |
| 1333 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1335 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1334 }; | 1336 }; |
| 1335 | 1337 |
| 1336 } // namespace content | 1338 } // namespace content |
| 1337 | 1339 |
| 1338 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1340 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |