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