| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ |
| 6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" | 10 #include "mojo/public/cpp/application/lazy_interface_ptr.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // WebViewClient methods: | 36 // WebViewClient methods: |
| 37 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); | 37 virtual blink::WebStorageNamespace* createSessionStorageNamespace(); |
| 38 | 38 |
| 39 // WebWidgetClient methods: | 39 // WebWidgetClient methods: |
| 40 virtual void didInvalidateRect(const blink::WebRect& rect); | 40 virtual void didInvalidateRect(const blink::WebRect& rect); |
| 41 virtual bool allowsBrokenNullLayerTreeView() const; | 41 virtual bool allowsBrokenNullLayerTreeView() const; |
| 42 | 42 |
| 43 // WebFrameClient methods: | 43 // WebFrameClient methods: |
| 44 virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent, |
| 45 const blink::WebString& frameName); |
| 46 virtual void frameDetached(blink::WebFrame*); |
| 44 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); | 47 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); |
| 45 virtual blink::WebNavigationPolicy decidePolicyForNavigation( | 48 virtual blink::WebNavigationPolicy decidePolicyForNavigation( |
| 46 blink::WebLocalFrame* frame, blink::WebDataSource::ExtraData* data, | 49 blink::WebLocalFrame* frame, blink::WebDataSource::ExtraData* data, |
| 47 const blink::WebURLRequest& request, blink::WebNavigationType nav_type, | 50 const blink::WebURLRequest& request, blink::WebNavigationType nav_type, |
| 48 blink::WebNavigationPolicy default_policy, bool isRedirect); | 51 blink::WebNavigationPolicy default_policy, bool isRedirect); |
| 49 virtual void didAddMessageToConsole( | 52 virtual void didAddMessageToConsole( |
| 50 const blink::WebConsoleMessage& message, | 53 const blink::WebConsoleMessage& message, |
| 51 const blink::WebString& source_name, | 54 const blink::WebString& source_name, |
| 52 unsigned source_line, | 55 unsigned source_line, |
| 53 const blink::WebString& stack_trace); | 56 const blink::WebString& stack_trace); |
| 54 virtual void didNavigateWithinPage( | 57 virtual void didNavigateWithinPage( |
| 55 blink::WebLocalFrame* frame, | 58 blink::WebLocalFrame* frame, |
| 56 const blink::WebHistoryItem& history_item, | 59 const blink::WebHistoryItem& history_item, |
| 57 blink::WebHistoryCommitType commit_type); | 60 blink::WebHistoryCommitType commit_type); |
| 58 | 61 |
| 59 // ViewObserver methods: | 62 // ViewObserver methods: |
| 60 virtual void OnViewBoundsChanged(View* view, | 63 virtual void OnViewBoundsChanged(View* view, |
| 61 const gfx::Rect& old_bounds, | 64 const gfx::Rect& old_bounds, |
| 62 const gfx::Rect& new_bounds) OVERRIDE; | 65 const gfx::Rect& new_bounds) OVERRIDE; |
| 63 virtual void OnViewDestroyed(View* view) OVERRIDE; | 66 virtual void OnViewDestroyed(View* view) OVERRIDE; |
| 64 virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE; | 67 virtual void OnViewInputEvent(View* view, const EventPtr& event) OVERRIDE; |
| 65 | 68 |
| 66 void Repaint(); | 69 void Repaint(); |
| 67 | 70 |
| 68 ViewManager* view_manager_; | 71 ViewManager* view_manager_; |
| 69 View* view_; | 72 LazyInterfacePtr<NavigatorHost> navigator_host_; |
| 70 blink::WebView* web_view_; | 73 blink::WebView* web_view_; |
| 71 View* root_; | 74 View* root_; |
| 72 bool repaint_pending_; | 75 bool repaint_pending_; |
| 73 LazyInterfacePtr<NavigatorHost> navigator_host_; | |
| 74 | 76 |
| 75 base::WeakPtrFactory<HTMLDocumentView> weak_factory_; | 77 base::WeakPtrFactory<HTMLDocumentView> weak_factory_; |
| 76 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView); | 78 DISALLOW_COPY_AND_ASSIGN(HTMLDocumentView); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace mojo | 81 } // namespace mojo |
| 80 | 82 |
| 81 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ | 83 #endif // MOJO_SERVICES_HTML_VIEWER_HTML_DOCUMENT_VIEW_H_ |
| OLD | NEW |