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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 class ColorOverlay final : public PageOverlay::Delegate { 310 class ColorOverlay final : public PageOverlay::Delegate {
311 public: 311 public:
312 explicit ColorOverlay(WebColor color) 312 explicit ColorOverlay(WebColor color)
313 : m_color(color) 313 : m_color(color)
314 { 314 {
315 } 315 }
316 316
317 private: 317 private:
318 void paintPageOverlay(const PageOverlay& pageOverlay, GraphicsContext& graph icsContext, const WebSize& size) const override 318 void paintPageOverlay(const PageOverlay& pageOverlay, GraphicsContext& graph icsContext, const WebSize& size) const override
319 { 319 {
320 if (DrawingRecorder::useCachedDrawingIfPossible(graphicsContext, pageOve rlay, DisplayItem::PageOverlay)) 320 if (DrawingRecorder::useCachedDrawingIfPossible(graphicsContext, pageOve rlay, DisplayItem::kPageOverlay))
321 return; 321 return;
322 FloatRect rect(0, 0, size.width, size.height); 322 FloatRect rect(0, 0, size.width, size.height);
323 DrawingRecorder drawingRecorder(graphicsContext, pageOverlay, DisplayIte m::PageOverlay, rect); 323 DrawingRecorder drawingRecorder(graphicsContext, pageOverlay, DisplayIte m::kPageOverlay, rect);
324 graphicsContext.fillRect(rect, m_color); 324 graphicsContext.fillRect(rect, m_color);
325 } 325 }
326 326
327 WebColor m_color; 327 WebColor m_color;
328 }; 328 };
329 329
330 } // namespace 330 } // namespace
331 331
332 // WebView ---------------------------------------------------------------- 332 // WebView ----------------------------------------------------------------
333 333
(...skipping 4274 matching lines...) Expand 10 before | Expand all | Expand 10 after
4608 return nullptr; 4608 return nullptr;
4609 return focusedFrame; 4609 return focusedFrame;
4610 } 4610 }
4611 4611
4612 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const 4612 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const
4613 { 4613 {
4614 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4614 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4615 } 4615 }
4616 4616
4617 } // namespace blink 4617 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698