| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const base::string16& GetLoadStateHost() const override; | 285 const base::string16& GetLoadStateHost() const override; |
| 286 uint64_t GetUploadSize() const override; | 286 uint64_t GetUploadSize() const override; |
| 287 uint64_t GetUploadPosition() const override; | 287 uint64_t GetUploadPosition() const override; |
| 288 const std::string& GetEncoding() const override; | 288 const std::string& GetEncoding() const override; |
| 289 bool DisplayedInsecureContent() const override; | 289 bool DisplayedInsecureContent() const override; |
| 290 void IncrementCapturerCount(const gfx::Size& capture_size) override; | 290 void IncrementCapturerCount(const gfx::Size& capture_size) override; |
| 291 void DecrementCapturerCount() override; | 291 void DecrementCapturerCount() override; |
| 292 int GetCapturerCount() const override; | 292 int GetCapturerCount() const override; |
| 293 bool IsAudioMuted() const override; | 293 bool IsAudioMuted() const override; |
| 294 void SetAudioMuted(bool mute) override; | 294 void SetAudioMuted(bool mute) override; |
| 295 void IncrementBluetoothConnectedDeviceCount(); | |
| 296 void DecrementBluetoothConnectedDeviceCount(); | |
| 297 bool IsConnectedToBluetoothDevice() const override; | 295 bool IsConnectedToBluetoothDevice() const override; |
| 298 bool IsCrashed() const override; | 296 bool IsCrashed() const override; |
| 299 void SetIsCrashed(base::TerminationStatus status, int error_code) override; | 297 void SetIsCrashed(base::TerminationStatus status, int error_code) override; |
| 300 base::TerminationStatus GetCrashedStatus() const override; | 298 base::TerminationStatus GetCrashedStatus() const override; |
| 301 int GetCrashedErrorCode() const override; | 299 int GetCrashedErrorCode() const override; |
| 302 bool IsBeingDestroyed() const override; | 300 bool IsBeingDestroyed() const override; |
| 303 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; | 301 void NotifyNavigationStateChanged(InvalidateTypes changed_flags) override; |
| 304 base::TimeTicks GetLastActiveTime() const override; | 302 base::TimeTicks GetLastActiveTime() const override; |
| 305 void SetLastActiveTime(base::TimeTicks last_active_time) override; | 303 void SetLastActiveTime(base::TimeTicks last_active_time) override; |
| 306 void WasShown() override; | 304 void WasShown() override; |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 void UpdateWebContentsVisibility(bool visible); | 746 void UpdateWebContentsVisibility(bool visible); |
| 749 | 747 |
| 750 // Called by FindRequestManager when find replies come in from a renderer | 748 // Called by FindRequestManager when find replies come in from a renderer |
| 751 // process. | 749 // process. |
| 752 void NotifyFindReply(int request_id, | 750 void NotifyFindReply(int request_id, |
| 753 int number_of_matches, | 751 int number_of_matches, |
| 754 const gfx::Rect& selection_rect, | 752 const gfx::Rect& selection_rect, |
| 755 int active_match_ordinal, | 753 int active_match_ordinal, |
| 756 bool final_update); | 754 bool final_update); |
| 757 | 755 |
| 756 // Modify the counter of connected devices for this WebContents. |
| 757 void IncrementBluetoothConnectedDeviceCount(); |
| 758 void DecrementBluetoothConnectedDeviceCount(); |
| 759 |
| 758 #if defined(OS_ANDROID) | 760 #if defined(OS_ANDROID) |
| 759 // Called by FindRequestManager when all of the find match rects are in. | 761 // Called by FindRequestManager when all of the find match rects are in. |
| 760 void NotifyFindMatchRectsReply(int version, | 762 void NotifyFindMatchRectsReply(int version, |
| 761 const std::vector<gfx::RectF>& rects, | 763 const std::vector<gfx::RectF>& rects, |
| 762 const gfx::RectF& active_rect); | 764 const gfx::RectF& active_rect); |
| 763 #endif | 765 #endif |
| 764 | 766 |
| 765 private: | 767 private: |
| 766 friend class WebContentsObserver; | 768 friend class WebContentsObserver; |
| 767 friend class WebContents; // To implement factory methods. | 769 friend class WebContents; // To implement factory methods. |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 // Adds/removes a callback called on creation of each new WebContents. | 1420 // Adds/removes a callback called on creation of each new WebContents. |
| 1419 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1421 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1420 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1422 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1421 | 1423 |
| 1422 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1424 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1423 }; | 1425 }; |
| 1424 | 1426 |
| 1425 } // namespace content | 1427 } // namespace content |
| 1426 | 1428 |
| 1427 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1429 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |