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

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: Fix unittests for Android, to reland Created 7 years, 4 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 180 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 void setWindowFeatures(const WebWindowFeatures&); 209 virtual void setWindowFeatures(const WebWindowFeatures&);
209 virtual bool dispatchBeforeUnloadEvent(); 210 virtual bool dispatchBeforeUnloadEvent();
210 virtual void dispatchUnloadEvent(); 211 virtual void dispatchUnloadEvent();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 virtual void setShowScrollBottleneckRects(bool); 319 virtual void setShowScrollBottleneckRects(bool);
319 320
320 // WebViewImpl 321 // WebViewImpl
321 322
322 void suppressInvalidations(bool enable); 323 void suppressInvalidations(bool enable);
323 void invalidateRect(const WebCore::IntRect&); 324 void invalidateRect(const WebCore::IntRect&);
324 325
325 void setIgnoreInputEvents(bool newValue); 326 void setIgnoreInputEvents(bool newValue);
326 WebDevToolsAgentPrivate* devToolsAgentPrivate() { return m_devToolsAgent.get (); } 327 WebDevToolsAgentPrivate* devToolsAgentPrivate() { return m_devToolsAgent.get (); }
327 328
329 WebCore::Color baseBackgroundColor() const { return m_baseBackgroundColor; }
330
328 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); } 331 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
329 332
330 void setOverlayLayer(WebCore::GraphicsLayer*); 333 void setOverlayLayer(WebCore::GraphicsLayer*);
331 334
332 const WebPoint& lastMouseDownPoint() const 335 const WebPoint& lastMouseDownPoint() const
333 { 336 {
334 return m_lastMouseDownPoint; 337 return m_lastMouseDownPoint;
335 } 338 }
336 339
337 WebCore::Frame* focusedWebCoreFrame() const; 340 WebCore::Frame* focusedWebCoreFrame() const;
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 int m_flingModifier; 830 int m_flingModifier;
828 bool m_flingSourceDevice; 831 bool m_flingSourceDevice;
829 OwnPtr<LinkHighlight> m_linkHighlight; 832 OwnPtr<LinkHighlight> m_linkHighlight;
830 OwnPtr<ValidationMessageClientImpl> m_validationMessage; 833 OwnPtr<ValidationMessageClientImpl> m_validationMessage;
831 834
832 bool m_showFPSCounter; 835 bool m_showFPSCounter;
833 bool m_showPaintRects; 836 bool m_showPaintRects;
834 bool m_showDebugBorders; 837 bool m_showDebugBorders;
835 bool m_continuousPaintingEnabled; 838 bool m_continuousPaintingEnabled;
836 bool m_showScrollBottleneckRects; 839 bool m_showScrollBottleneckRects;
840 WebColor m_baseBackgroundColor;
837 }; 841 };
838 842
839 } // namespace WebKit 843 } // namespace WebKit
840 844
841 #endif 845 #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