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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 19883002: Expose a way to set a view's base background color. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: +test Created 7 years, 5 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 | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
41 #include "NotificationPresenterImpl.h" 41 #include "NotificationPresenterImpl.h"
42 #include "PageOverlayList.h" 42 #include "PageOverlayList.h"
43 #include "PageWidgetDelegate.h" 43 #include "PageWidgetDelegate.h"
44 #include "UserMediaClientImpl.h" 44 #include "UserMediaClientImpl.h"
45 #include "WebInputEvent.h" 45 #include "WebInputEvent.h"
46 #include "WebNavigationPolicy.h" 46 #include "WebNavigationPolicy.h"
47 #include "WebView.h" 47 #include "WebView.h"
48 #include "WebViewBenchmarkSupportImpl.h" 48 #include "WebViewBenchmarkSupportImpl.h"
49 #include "core/page/PagePopupDriver.h" 49 #include "core/page/PagePopupDriver.h"
50 #include "core/page/PageScaleConstraintsSet.h" 50 #include "core/page/PageScaleConstraintsSet.h"
51 #include "core/platform/graphics/Color.h"
51 #include "core/platform/graphics/FloatSize.h" 52 #include "core/platform/graphics/FloatSize.h"
52 #include "core/platform/graphics/GraphicsContext3D.h" 53 #include "core/platform/graphics/GraphicsContext3D.h"
53 #include "core/platform/graphics/GraphicsLayer.h" 54 #include "core/platform/graphics/GraphicsLayer.h"
54 #include "core/platform/graphics/IntPoint.h" 55 #include "core/platform/graphics/IntPoint.h"
55 #include "core/platform/graphics/IntRect.h" 56 #include "core/platform/graphics/IntRect.h"
56 #include "public/platform/WebFloatQuad.h" 57 #include "public/platform/WebFloatQuad.h"
57 #include "public/platform/WebGestureCurveTarget.h" 58 #include "public/platform/WebGestureCurveTarget.h"
58 #include "public/platform/WebLayer.h" 59 #include "public/platform/WebLayer.h"
59 #include "public/platform/WebPoint.h" 60 #include "public/platform/WebPoint.h"
60 #include "public/platform/WebRect.h" 61 #include "public/platform/WebRect.h"
61 #include "public/platform/WebSize.h" 62 #include "public/platform/WebSize.h"
62 #include "public/platform/WebString.h" 63 #include "public/platform/WebString.h"
63 #include "wtf/OwnPtr.h" 64 #include "wtf/OwnPtr.h"
64 #include "wtf/RefCounted.h" 65 #include "wtf/RefCounted.h"
65 66
66 namespace WebCore { 67 namespace WebCore {
67 class ChromiumDataObject; 68 class ChromiumDataObject;
68 class Color;
69 class DocumentLoader; 69 class DocumentLoader;
70 class FloatSize; 70 class FloatSize;
71 class Frame; 71 class Frame;
72 class GraphicsContext3D; 72 class GraphicsContext3D;
73 class GraphicsLayerFactory; 73 class GraphicsLayerFactory;
74 class HistoryItem; 74 class HistoryItem;
75 class HitTestResult; 75 class HitTestResult;
76 class KeyboardEvent; 76 class KeyboardEvent;
77 class Page; 77 class Page;
78 class PageGroup; 78 class PageGroup;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual void setPermissionClient(WebPermissionClient*); 191 virtual void setPermissionClient(WebPermissionClient*);
192 virtual void setPrerendererClient(WebPrerendererClient*) OVERRIDE; 192 virtual void setPrerendererClient(WebPrerendererClient*) OVERRIDE;
193 virtual void setSpellCheckClient(WebSpellCheckClient*); 193 virtual void setSpellCheckClient(WebSpellCheckClient*);
194 virtual void setValidationMessageClient(WebValidationMessageClient*) OVERRID E; 194 virtual void setValidationMessageClient(WebValidationMessageClient*) OVERRID E;
195 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) OVERRID E; 195 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) OVERRID E;
196 virtual WebSettings* settings(); 196 virtual WebSettings* settings();
197 virtual WebString pageEncoding() const; 197 virtual WebString pageEncoding() const;
198 virtual void setPageEncoding(const WebString& encoding); 198 virtual void setPageEncoding(const WebString& encoding);
199 virtual bool isTransparent() const; 199 virtual bool isTransparent() const;
200 virtual void setIsTransparent(bool value); 200 virtual void setIsTransparent(bool value);
201 virtual void setBaseBackgroundColor(WebColor);
201 virtual bool tabsToLinks() const; 202 virtual bool tabsToLinks() const;
202 virtual void setTabsToLinks(bool value); 203 virtual void setTabsToLinks(bool value);
203 virtual bool tabKeyCyclesThroughElements() const; 204 virtual bool tabKeyCyclesThroughElements() const;
204 virtual void setTabKeyCyclesThroughElements(bool value); 205 virtual void setTabKeyCyclesThroughElements(bool value);
205 virtual bool isActive() const; 206 virtual bool isActive() const;
206 virtual void setIsActive(bool value); 207 virtual void setIsActive(bool value);
207 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme); 208 virtual void setDomainRelaxationForbidden(bool, const WebString& scheme);
208 virtual bool dispatchBeforeUnloadEvent(); 209 virtual bool dispatchBeforeUnloadEvent();
209 virtual void dispatchUnloadEvent(); 210 virtual void dispatchUnloadEvent();
210 virtual WebFrame* mainFrame(); 211 virtual WebFrame* mainFrame();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 319
319 // WebViewImpl 320 // WebViewImpl
320 321
321 void suppressInvalidations(bool enable); 322 void suppressInvalidations(bool enable);
322 void invalidateRect(const WebCore::IntRect&); 323 void invalidateRect(const WebCore::IntRect&);
323 324
324 void setIgnoreInputEvents(bool newValue); 325 void setIgnoreInputEvents(bool newValue);
325 WebDevToolsAgentPrivate* devToolsAgentPrivate() { return m_devToolsAgent.get (); } 326 WebDevToolsAgentPrivate* devToolsAgentPrivate() { return m_devToolsAgent.get (); }
326 327
327 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); } 328 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
329 WebCore::Color baseBackgroundColor() const { return m_baseBackgroundColor; }
aelias_OOO_until_Jul13 2013/07/24 06:56:03 nit: move this out from between the two "overlay"
328 330
329 void setOverlayLayer(WebCore::GraphicsLayer*); 331 void setOverlayLayer(WebCore::GraphicsLayer*);
330 332
331 const WebPoint& lastMouseDownPoint() const 333 const WebPoint& lastMouseDownPoint() const
332 { 334 {
333 return m_lastMouseDownPoint; 335 return m_lastMouseDownPoint;
334 } 336 }
335 337
336 WebCore::Frame* focusedWebCoreFrame() const; 338 WebCore::Frame* focusedWebCoreFrame() const;
337 339
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 int m_flingModifier; 828 int m_flingModifier;
827 bool m_flingSourceDevice; 829 bool m_flingSourceDevice;
828 OwnPtr<LinkHighlight> m_linkHighlight; 830 OwnPtr<LinkHighlight> m_linkHighlight;
829 OwnPtr<ValidationMessageClientImpl> m_validationMessage; 831 OwnPtr<ValidationMessageClientImpl> m_validationMessage;
830 832
831 bool m_showFPSCounter; 833 bool m_showFPSCounter;
832 bool m_showPaintRects; 834 bool m_showPaintRects;
833 bool m_showDebugBorders; 835 bool m_showDebugBorders;
834 bool m_continuousPaintingEnabled; 836 bool m_continuousPaintingEnabled;
835 bool m_showScrollBottleneckRects; 837 bool m_showScrollBottleneckRects;
838 WebCore::Color m_baseBackgroundColor;
836 }; 839 };
837 840
838 } // namespace WebKit 841 } // namespace WebKit
839 842
840 #endif 843 #endif
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698