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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 void Activate() override; | 433 void Activate() override; |
434 void Deactivate() override; | 434 void Deactivate() override; |
435 void LostCapture() override; | 435 void LostCapture() override; |
436 void HandleMouseDown() override; | 436 void HandleMouseDown() override; |
437 void HandleMouseUp() override; | 437 void HandleMouseUp() override; |
438 void HandlePointerActivate() override; | 438 void HandlePointerActivate() override; |
439 void HandleGestureBegin() override; | 439 void HandleGestureBegin() override; |
440 void HandleGestureEnd() override; | 440 void HandleGestureEnd() override; |
441 void RunFileChooser(RenderViewHost* render_view_host, | 441 void RunFileChooser(RenderViewHost* render_view_host, |
442 const FileChooserParams& params) override; | 442 const FileChooserParams& params) override; |
443 void ToggleFullscreenMode(bool enter_fullscreen) override; | 443 void EnterFullscreenMode(const GURL& origin) override; |
| 444 void ExitFullscreenMode() override; |
444 bool IsFullscreenForCurrentTab() const override; | 445 bool IsFullscreenForCurrentTab() const override; |
445 void UpdatePreferredSize(const gfx::Size& pref_size) override; | 446 void UpdatePreferredSize(const gfx::Size& pref_size) override; |
446 void ResizeDueToAutoResize(const gfx::Size& new_size) override; | 447 void ResizeDueToAutoResize(const gfx::Size& new_size) override; |
447 void RequestToLockMouse(bool user_gesture, | 448 void RequestToLockMouse(bool user_gesture, |
448 bool last_unlocked_by_target) override; | 449 bool last_unlocked_by_target) override; |
449 void LostMouseLock() override; | 450 void LostMouseLock() override; |
450 void CreateNewWindow( | 451 void CreateNewWindow( |
451 int render_process_id, | 452 int render_process_id, |
452 int route_id, | 453 int route_id, |
453 int main_frame_route_id, | 454 int main_frame_route_id, |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 typedef std::vector<int64> PlayerList; | 936 typedef std::vector<int64> PlayerList; |
936 typedef std::map<uintptr_t, PlayerList> ActiveMediaPlayerMap; | 937 typedef std::map<uintptr_t, PlayerList> ActiveMediaPlayerMap; |
937 void AddMediaPlayerEntry(int64 player_cookie, | 938 void AddMediaPlayerEntry(int64 player_cookie, |
938 ActiveMediaPlayerMap* player_map); | 939 ActiveMediaPlayerMap* player_map); |
939 void RemoveMediaPlayerEntry(int64 player_cookie, | 940 void RemoveMediaPlayerEntry(int64 player_cookie, |
940 ActiveMediaPlayerMap* player_map); | 941 ActiveMediaPlayerMap* player_map); |
941 // Removes all entries from |player_map| for |render_frame_host|. | 942 // Removes all entries from |player_map| for |render_frame_host|. |
942 void RemoveAllMediaPlayerEntries(RenderFrameHost* render_frame_host, | 943 void RemoveAllMediaPlayerEntries(RenderFrameHost* render_frame_host, |
943 ActiveMediaPlayerMap* player_map); | 944 ActiveMediaPlayerMap* player_map); |
944 | 945 |
| 946 // Helper used by EnterFullscreenMode and ExitFullscreenMode. |
| 947 // |origin| will be empty iif |enter_fullscreen| is false. |
| 948 // |origin| will be a valid url iif |enter_fullscreen| is true. |
| 949 void ToggleFullscreenMode(const GURL& origin, bool enter_fullscreen); |
| 950 |
945 // Adds/removes a callback called on creation of each new WebContents. | 951 // Adds/removes a callback called on creation of each new WebContents. |
946 // Deprecated, about to remove. | 952 // Deprecated, about to remove. |
947 static void AddCreatedCallback(const CreatedCallback& callback); | 953 static void AddCreatedCallback(const CreatedCallback& callback); |
948 static void RemoveCreatedCallback(const CreatedCallback& callback); | 954 static void RemoveCreatedCallback(const CreatedCallback& callback); |
949 | 955 |
950 // Data for core operation --------------------------------------------------- | 956 // Data for core operation --------------------------------------------------- |
951 | 957 |
952 // Delegate for notifying our owner about stuff. Not owned by us. | 958 // Delegate for notifying our owner about stuff. Not owned by us. |
953 WebContentsDelegate* delegate_; | 959 WebContentsDelegate* delegate_; |
954 | 960 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 bool virtual_keyboard_requested_; | 1236 bool virtual_keyboard_requested_; |
1231 | 1237 |
1232 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; | 1238 base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_; |
1233 | 1239 |
1234 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1240 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
1235 }; | 1241 }; |
1236 | 1242 |
1237 } // namespace content | 1243 } // namespace content |
1238 | 1244 |
1239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1245 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |