| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ |
| 6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ | 6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 13 #include "cc/layers/surface_layer.h" | 15 #include "cc/layers/surface_layer.h" |
| 14 #include "components/html_viewer/html_frame_tree_manager.h" | 16 #include "components/html_viewer/html_frame_tree_manager.h" |
| 15 #include "components/html_viewer/replicated_frame_state.h" | 17 #include "components/html_viewer/replicated_frame_state.h" |
| 16 #include "components/mus/public/cpp/input_event_handler.h" | 18 #include "components/mus/public/cpp/input_event_handler.h" |
| 17 #include "components/mus/public/cpp/window_observer.h" | 19 #include "components/mus/public/cpp/window_observer.h" |
| 18 #include "components/web_view/public/interfaces/frame.mojom.h" | 20 #include "components/web_view/public/interfaces/frame.mojom.h" |
| 19 #include "mojo/public/cpp/bindings/binding.h" | 21 #include "mojo/public/cpp/bindings/binding.h" |
| 20 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" | 22 #include "mojo/services/tracing/public/interfaces/tracing.mojom.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 const mojo::String& name, | 297 const mojo::String& name, |
| 296 mojo::Array<uint8_t> new_value) override; | 298 mojo::Array<uint8_t> new_value) override; |
| 297 void OnPostMessageEvent( | 299 void OnPostMessageEvent( |
| 298 uint32_t source_frame_id, | 300 uint32_t source_frame_id, |
| 299 uint32_t target_frame_id, | 301 uint32_t target_frame_id, |
| 300 web_view::mojom::HTMLMessageEventPtr serialized_event) override; | 302 web_view::mojom::HTMLMessageEventPtr serialized_event) override; |
| 301 void OnWillNavigate(const mojo::String& origin, | 303 void OnWillNavigate(const mojo::String& origin, |
| 302 const OnWillNavigateCallback& callback) override; | 304 const OnWillNavigateCallback& callback) override; |
| 303 void OnFrameLoadingStateChanged(uint32_t frame_id, bool loading) override; | 305 void OnFrameLoadingStateChanged(uint32_t frame_id, bool loading) override; |
| 304 void OnDispatchFrameLoadEvent(uint32_t frame_id) override; | 306 void OnDispatchFrameLoadEvent(uint32_t frame_id) override; |
| 305 void Find(int32 request_id, | 307 void Find(int32_t request_id, |
| 306 const mojo::String& search_text, | 308 const mojo::String& search_text, |
| 307 web_view::mojom::FindOptionsPtr options, | 309 web_view::mojom::FindOptionsPtr options, |
| 308 bool wrap_within_frame, | 310 bool wrap_within_frame, |
| 309 const FindCallback& callback) override; | 311 const FindCallback& callback) override; |
| 310 void StopFinding(bool clear_selection) override; | 312 void StopFinding(bool clear_selection) override; |
| 311 void HighlightFindResults(int32_t request_id, | 313 void HighlightFindResults(int32_t request_id, |
| 312 const mojo::String& search_test, | 314 const mojo::String& search_test, |
| 313 web_view::mojom::FindOptionsPtr options, | 315 web_view::mojom::FindOptionsPtr options, |
| 314 bool reset) override; | 316 bool reset) override; |
| 315 void StopHighlightingFindResults() override; | 317 void StopHighlightingFindResults() override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 base::TimeTicks navigation_start_time_; | 377 base::TimeTicks navigation_start_time_; |
| 376 | 378 |
| 377 base::WeakPtrFactory<HTMLFrame> weak_factory_; | 379 base::WeakPtrFactory<HTMLFrame> weak_factory_; |
| 378 | 380 |
| 379 DISALLOW_COPY_AND_ASSIGN(HTMLFrame); | 381 DISALLOW_COPY_AND_ASSIGN(HTMLFrame); |
| 380 }; | 382 }; |
| 381 | 383 |
| 382 } // namespace html_viewer | 384 } // namespace html_viewer |
| 383 | 385 |
| 384 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ | 386 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ |
| OLD | NEW |