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

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: jamesr comments 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
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 bool dispatchBeforeUnloadEvent(); 209 virtual bool dispatchBeforeUnloadEvent();
209 virtual void dispatchUnloadEvent(); 210 virtual void dispatchUnloadEvent();
210 virtual WebFrame* mainFrame(); 211 virtual WebFrame* mainFrame();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 virtual void setShowScrollBottleneckRects(bool); 318 virtual void setShowScrollBottleneckRects(bool);
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
328 WebCore::Color baseBackgroundColor() const { return m_baseBackgroundColor; }
329
327 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); } 330 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
328 331
329 void setOverlayLayer(WebCore::GraphicsLayer*); 332 void setOverlayLayer(WebCore::GraphicsLayer*);
330 333
331 const WebPoint& lastMouseDownPoint() const 334 const WebPoint& lastMouseDownPoint() const
332 { 335 {
333 return m_lastMouseDownPoint; 336 return m_lastMouseDownPoint;
334 } 337 }
335 338
336 WebCore::Frame* focusedWebCoreFrame() const; 339 WebCore::Frame* focusedWebCoreFrame() const;
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 int m_flingModifier; 829 int m_flingModifier;
827 bool m_flingSourceDevice; 830 bool m_flingSourceDevice;
828 OwnPtr<LinkHighlight> m_linkHighlight; 831 OwnPtr<LinkHighlight> m_linkHighlight;
829 OwnPtr<ValidationMessageClientImpl> m_validationMessage; 832 OwnPtr<ValidationMessageClientImpl> m_validationMessage;
830 833
831 bool m_showFPSCounter; 834 bool m_showFPSCounter;
832 bool m_showPaintRects; 835 bool m_showPaintRects;
833 bool m_showDebugBorders; 836 bool m_showDebugBorders;
834 bool m_continuousPaintingEnabled; 837 bool m_continuousPaintingEnabled;
835 bool m_showScrollBottleneckRects; 838 bool m_showScrollBottleneckRects;
839 WebColor m_baseBackgroundColor;
836 }; 840 };
837 841
838 } // namespace WebKit 842 } // namespace WebKit
839 843
840 #endif 844 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698