Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: sky/viewer/document_view.h

Issue 793393003: Move the call to mojo::View::Embed to HTMLIFrameElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.cpp ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.cpp ('k') | sky/viewer/document_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698