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

Side by Side Diff: sky/engine/web/WebViewImpl.h

Issue 746713002: Move InspectorBackendMojo out of the blink namespace (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 namespace blink { 55 namespace blink {
56 56
57 class Frame; 57 class Frame;
58 class LinkHighlight; 58 class LinkHighlight;
59 class RenderLayerCompositor; 59 class RenderLayerCompositor;
60 class UserGestureToken; 60 class UserGestureToken;
61 class WebActiveGestureAnimation; 61 class WebActiveGestureAnimation;
62 class WebLocalFrameImpl; 62 class WebLocalFrameImpl;
63 class WebImage; 63 class WebImage;
64 class WebSettingsImpl; 64 class WebSettingsImpl;
65 class InspectorBackendMojo;
66 65
67 class WebViewImpl final : public WebView 66 class WebViewImpl final : public WebView
68 , public RefCounted<WebViewImpl> 67 , public RefCounted<WebViewImpl>
69 , public WebGestureCurveTarget 68 , public WebGestureCurveTarget
70 , public PageWidgetEventHandler { 69 , public PageWidgetEventHandler {
71 public: 70 public:
72 static WebViewImpl* create(WebViewClient*); 71 static WebViewImpl* create(WebViewClient*);
73 72
74 // WebWidget methods: 73 // WebWidget methods:
75 virtual void close() override; 74 virtual void close() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const override; 110 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const override;
112 virtual bool isSelectionAnchorFirst() const override; 111 virtual bool isSelectionAnchorFirst() const override;
113 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid e; 112 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid e;
114 virtual void setTextDirection(WebTextDirection) override; 113 virtual void setTextDirection(WebTextDirection) override;
115 virtual bool isAcceleratedCompositingActive() const override; 114 virtual bool isAcceleratedCompositingActive() const override;
116 virtual void willCloseLayerTreeView() override; 115 virtual void willCloseLayerTreeView() override;
117 116
118 // WebView methods: 117 // WebView methods:
119 virtual void setMainFrame(WebFrame*) override; 118 virtual void setMainFrame(WebFrame*) override;
120 virtual void injectModule(const WebString&) override; 119 virtual void injectModule(const WebString&) override;
121 virtual void connectInspectorBackend() override;
122 virtual void setSpellCheckClient(WebSpellCheckClient*) override; 120 virtual void setSpellCheckClient(WebSpellCheckClient*) override;
123 virtual WebSettings* settings() override; 121 virtual WebSettings* settings() override;
124 virtual WebString pageEncoding() const override; 122 virtual WebString pageEncoding() const override;
125 virtual void setPageEncoding(const WebString&) override; 123 virtual void setPageEncoding(const WebString&) override;
126 virtual bool isTransparent() const override; 124 virtual bool isTransparent() const override;
127 virtual void setIsTransparent(bool value) override; 125 virtual void setIsTransparent(bool value) override;
128 virtual void setBaseBackgroundColor(WebColor) override; 126 virtual void setBaseBackgroundColor(WebColor) override;
129 virtual bool tabsToLinks() const override; 127 virtual bool tabsToLinks() const override;
130 virtual void setTabsToLinks(bool value) override; 128 virtual void setTabsToLinks(bool value) override;
131 virtual bool tabKeyCyclesThroughElements() const override; 129 virtual bool tabKeyCyclesThroughElements() const override;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 441
444 bool m_showFPSCounter; 442 bool m_showFPSCounter;
445 bool m_showPaintRects; 443 bool m_showPaintRects;
446 bool m_showDebugBorders; 444 bool m_showDebugBorders;
447 bool m_continuousPaintingEnabled; 445 bool m_continuousPaintingEnabled;
448 bool m_showScrollBottleneckRects; 446 bool m_showScrollBottleneckRects;
449 WebColor m_baseBackgroundColor; 447 WebColor m_baseBackgroundColor;
450 WebColor m_backgroundColorOverride; 448 WebColor m_backgroundColorOverride;
451 449
452 bool m_userGestureObserved; 450 bool m_userGestureObserved;
453
454 // FIXME(sky): InspectorBackendMojo should be a peer to WebView
455 // however right now it depends on acccess to the Page.
456 OwnPtr<InspectorBackendMojo> m_inspectorBackend;
457 }; 451 };
458 452
459 // We have no ways to check if the specified WebView is an instance of 453 // We have no ways to check if the specified WebView is an instance of
460 // WebViewImpl because WebViewImpl is the only implementation of WebView. 454 // WebViewImpl because WebViewImpl is the only implementation of WebView.
461 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 455 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
462 456
463 } // namespace blink 457 } // namespace blink
464 458
465 #endif 459 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698