| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 return WebFrameLoadType::Standard; | 650 return WebFrameLoadType::Standard; |
| 651 } | 651 } |
| 652 NOTREACHED(); | 652 NOTREACHED(); |
| 653 return WebFrameLoadType::Standard; | 653 return WebFrameLoadType::Standard; |
| 654 } | 654 } |
| 655 | 655 |
| 656 RenderFrameImpl::CreateRenderFrameImplFunction g_create_render_frame_impl = | 656 RenderFrameImpl::CreateRenderFrameImplFunction g_create_render_frame_impl = |
| 657 nullptr; | 657 nullptr; |
| 658 | 658 |
| 659 void OnGotInstanceID(shell::mojom::ConnectResult result, | 659 void OnGotInstanceID(shell::mojom::ConnectResult result, |
| 660 const std::string& user_id, | 660 mojo::String user_id, |
| 661 uint32_t instance_id) {} | 661 uint32_t instance_id) {} |
| 662 | 662 |
| 663 WebString ConvertRelativePathToHtmlAttribute(const base::FilePath& path) { | 663 WebString ConvertRelativePathToHtmlAttribute(const base::FilePath& path) { |
| 664 DCHECK(!path.IsAbsolute()); | 664 DCHECK(!path.IsAbsolute()); |
| 665 return WebString::fromUTF8( | 665 return WebString::fromUTF8( |
| 666 std::string("./") + | 666 std::string("./") + |
| 667 path.NormalizePathSeparatorsTo(FILE_PATH_LITERAL('/')).AsUTF8Unsafe()); | 667 path.NormalizePathSeparatorsTo(FILE_PATH_LITERAL('/')).AsUTF8Unsafe()); |
| 668 } | 668 } |
| 669 | 669 |
| 670 // Implementation of WebFrameSerializer::LinkRewritingDelegate that responds | 670 // Implementation of WebFrameSerializer::LinkRewritingDelegate that responds |
| (...skipping 5570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6241 // event target. Potentially a Pepper plugin will receive the event. | 6241 // event target. Potentially a Pepper plugin will receive the event. |
| 6242 // In order to tell whether a plugin gets the last mouse event and which it | 6242 // In order to tell whether a plugin gets the last mouse event and which it |
| 6243 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6243 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6244 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6244 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6245 // |pepper_last_mouse_event_target_|. | 6245 // |pepper_last_mouse_event_target_|. |
| 6246 pepper_last_mouse_event_target_ = nullptr; | 6246 pepper_last_mouse_event_target_ = nullptr; |
| 6247 #endif | 6247 #endif |
| 6248 } | 6248 } |
| 6249 | 6249 |
| 6250 } // namespace content | 6250 } // namespace content |
| OLD | NEW |