OLD | NEW |
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 #include "platform/exported/WebActiveGestureAnimation.h" | 109 #include "platform/exported/WebActiveGestureAnimation.h" |
110 #include "platform/fonts/FontCache.h" | 110 #include "platform/fonts/FontCache.h" |
111 #include "platform/graphics/Color.h" | 111 #include "platform/graphics/Color.h" |
112 #include "platform/graphics/FirstPaintInvalidationTracking.h" | 112 #include "platform/graphics/FirstPaintInvalidationTracking.h" |
113 #include "platform/graphics/Image.h" | 113 #include "platform/graphics/Image.h" |
114 #include "platform/graphics/ImageBuffer.h" | 114 #include "platform/graphics/ImageBuffer.h" |
115 #include "platform/scheduler/Scheduler.h" | 115 #include "platform/scheduler/Scheduler.h" |
116 #include "platform/scroll/ScrollbarTheme.h" | 116 #include "platform/scroll/ScrollbarTheme.h" |
117 #include "platform/weborigin/SchemeRegistry.h" | 117 #include "platform/weborigin/SchemeRegistry.h" |
118 #include "public/platform/Platform.h" | 118 #include "public/platform/Platform.h" |
| 119 #include "public/platform/WebCompositeAndReadbackAsyncCallback.h" |
119 #include "public/platform/WebDragData.h" | 120 #include "public/platform/WebDragData.h" |
120 #include "public/platform/WebFloatPoint.h" | 121 #include "public/platform/WebFloatPoint.h" |
121 #include "public/platform/WebGestureCurve.h" | 122 #include "public/platform/WebGestureCurve.h" |
122 #include "public/platform/WebImage.h" | 123 #include "public/platform/WebImage.h" |
123 #include "public/platform/WebLayerTreeView.h" | 124 #include "public/platform/WebLayerTreeView.h" |
124 #include "public/platform/WebURLRequest.h" | 125 #include "public/platform/WebURLRequest.h" |
125 #include "public/platform/WebVector.h" | 126 #include "public/platform/WebVector.h" |
126 #include "public/web/WebAXObject.h" | 127 #include "public/web/WebAXObject.h" |
127 #include "public/web/WebActiveWheelFlingParameters.h" | 128 #include "public/web/WebActiveWheelFlingParameters.h" |
128 #include "public/web/WebAutofillClient.h" | 129 #include "public/web/WebAutofillClient.h" |
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 if (!m_page) | 2486 if (!m_page) |
2486 return m_baseBackgroundColor; | 2487 return m_baseBackgroundColor; |
2487 if (!m_page->mainFrame()) | 2488 if (!m_page->mainFrame()) |
2488 return m_baseBackgroundColor; | 2489 return m_baseBackgroundColor; |
2489 if (!m_page->mainFrame()->isLocalFrame()) | 2490 if (!m_page->mainFrame()->isLocalFrame()) |
2490 return m_baseBackgroundColor; | 2491 return m_baseBackgroundColor; |
2491 FrameView* view = m_page->deprecatedLocalMainFrame()->view(); | 2492 FrameView* view = m_page->deprecatedLocalMainFrame()->view(); |
2492 return view->documentBackgroundColor().rgb(); | 2493 return view->documentBackgroundColor().rgb(); |
2493 } | 2494 } |
2494 | 2495 |
| 2496 WebPagePopup* WebViewImpl::pagePopup() const |
| 2497 { |
| 2498 return m_pagePopup.get(); |
| 2499 } |
| 2500 |
2495 bool WebViewImpl::caretOrSelectionRange(size_t* location, size_t* length) | 2501 bool WebViewImpl::caretOrSelectionRange(size_t* location, size_t* length) |
2496 { | 2502 { |
2497 const LocalFrame* focused = toLocalFrame(focusedCoreFrame()); | 2503 const LocalFrame* focused = toLocalFrame(focusedCoreFrame()); |
2498 if (!focused) | 2504 if (!focused) |
2499 return false; | 2505 return false; |
2500 | 2506 |
2501 PlainTextRange selectionOffsets = focused->inputMethodController().getSelect
ionOffsets(); | 2507 PlainTextRange selectionOffsets = focused->inputMethodController().getSelect
ionOffsets(); |
2502 if (selectionOffsets.isNull()) | 2508 if (selectionOffsets.isNull()) |
2503 return false; | 2509 return false; |
2504 | 2510 |
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4293 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4299 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4294 | 4300 |
4295 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4301 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4296 return false; | 4302 return false; |
4297 | 4303 |
4298 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4304 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4299 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4305 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4300 } | 4306 } |
4301 | 4307 |
4302 } // namespace blink | 4308 } // namespace blink |
OLD | NEW |