| 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 SKY_VIEWER_DOCUMENT_VIEW_H_ | 5 #ifndef SKY_VIEWER_DOCUMENT_VIEW_H_ |
| 6 #define SKY_VIEWER_DOCUMENT_VIEW_H_ | 6 #define SKY_VIEWER_DOCUMENT_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 void GetPixelsForTesting(std::vector<unsigned char>* pixels); | 76 void GetPixelsForTesting(std::vector<unsigned char>* pixels); |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 // WebWidgetClient methods: | 79 // WebWidgetClient methods: |
| 80 void initializeLayerTreeView() override; | 80 void initializeLayerTreeView() override; |
| 81 void scheduleAnimation() override; | 81 void scheduleAnimation() override; |
| 82 blink::WebScreenInfo screenInfo() override; | 82 blink::WebScreenInfo screenInfo() override; |
| 83 | 83 |
| 84 // WebFrameClient methods: | 84 // WebFrameClient methods: |
| 85 mojo::View* createChildFrame(const blink::WebURL& url) override; | 85 mojo::View* createChildFrame() override; |
| 86 void frameDetached(blink::WebFrame*) override; | 86 void frameDetached(blink::WebFrame*) override; |
| 87 blink::WebNavigationPolicy decidePolicyForNavigation( | 87 blink::WebNavigationPolicy decidePolicyForNavigation( |
| 88 const blink::WebFrameClient::NavigationPolicyInfo& info) override; | 88 const blink::WebFrameClient::NavigationPolicyInfo& info) override; |
| 89 void didAddMessageToConsole( | 89 void didAddMessageToConsole( |
| 90 const blink::WebConsoleMessage& message, | 90 const blink::WebConsoleMessage& message, |
| 91 const blink::WebString& source_name, | 91 const blink::WebString& source_name, |
| 92 unsigned source_line, | 92 unsigned source_line, |
| 93 const blink::WebString& stack_trace) override; | 93 const blink::WebString& stack_trace) override; |
| 94 void didCreateScriptContext( | 94 void didCreateScriptContext( |
| 95 blink::WebLocalFrame*, | 95 blink::WebLocalFrame*, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 int debugger_id_; | 140 int debugger_id_; |
| 141 | 141 |
| 142 base::WeakPtrFactory<DocumentView> weak_factory_; | 142 base::WeakPtrFactory<DocumentView> weak_factory_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(DocumentView); | 144 DISALLOW_COPY_AND_ASSIGN(DocumentView); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 } // namespace sky | 147 } // namespace sky |
| 148 | 148 |
| 149 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ | 149 #endif // SKY_VIEWER_DOCUMENT_VIEW_H_ |
| OLD | NEW |