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

Side by Side Diff: components/html_viewer/html_frame.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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
OLDNEW
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> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 namespace cc_blink { 30 namespace cc_blink {
31 class WebLayerImpl; 31 class WebLayerImpl;
32 } 32 }
33 33
34 namespace blink { 34 namespace blink {
35 class WebFrame; 35 class WebFrame;
36 class WebWidget; 36 class WebWidget;
37 } 37 }
38 38
39 namespace mojo { 39 namespace mojo {
40 class ApplicationImpl;
41 class Rect; 40 class Rect;
41 class Shell;
42 } 42 }
43 43
44 namespace mus { 44 namespace mus {
45 class ScopedWindowPtr; 45 class ScopedWindowPtr;
46 class Window; 46 class Window;
47 } 47 }
48 48
49 namespace html_viewer { 49 namespace html_viewer {
50 50
51 class DevToolsAgentImpl; 51 class DevToolsAgentImpl;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 // Sets the appropriate value from the client property. |name| identifies 225 // Sets the appropriate value from the client property. |name| identifies
226 // the property and |new_data| the new value. 226 // the property and |new_data| the new value.
227 void SetValueFromClientProperty(const std::string& name, 227 void SetValueFromClientProperty(const std::string& name,
228 mojo::Array<uint8_t> new_data); 228 mojo::Array<uint8_t> new_data);
229 229
230 // The local root is the first ancestor (starting at this) that has its own 230 // The local root is the first ancestor (starting at this) that has its own
231 // delegate. 231 // delegate.
232 HTMLFrame* GetFirstAncestorWithDelegate(); 232 HTMLFrame* GetFirstAncestorWithDelegate();
233 233
234 // Returns the ApplicationImpl from the first ancestor with a delegate. 234 // Returns the Shell from the first ancestor with a delegate.
235 mojo::ApplicationImpl* GetApp(); 235 mojo::Shell* GetShell();
236 236
237 // Gets the server Frame to use for this frame. 237 // Gets the server Frame to use for this frame.
238 web_view::mojom::Frame* GetServerFrame(); 238 web_view::mojom::Frame* GetServerFrame();
239 239
240 void SetWindow(mus::Window* window); 240 void SetWindow(mus::Window* window);
241 241
242 // Creates the appropriate WebWidget implementation for the Frame. 242 // Creates the appropriate WebWidget implementation for the Frame.
243 void CreateRootWebWidget(); 243 void CreateRootWebWidget();
244 void CreateLocalRootWebWidget(blink::WebLocalFrame* local_frame); 244 void CreateLocalRootWebWidget(blink::WebLocalFrame* local_frame);
245 245
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 base::TimeTicks navigation_start_time_; 380 base::TimeTicks navigation_start_time_;
381 381
382 base::WeakPtrFactory<HTMLFrame> weak_factory_; 382 base::WeakPtrFactory<HTMLFrame> weak_factory_;
383 383
384 DISALLOW_COPY_AND_ASSIGN(HTMLFrame); 384 DISALLOW_COPY_AND_ASSIGN(HTMLFrame);
385 }; 385 };
386 386
387 } // namespace html_viewer 387 } // namespace html_viewer
388 388
389 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_ 389 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_H_
OLDNEW
« no previous file with comments | « components/html_viewer/html_document_application_delegate.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698