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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 6955016: Merge 85823 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 Frame* WebViewImpl::focusedWebCoreFrame() const 924 Frame* WebViewImpl::focusedWebCoreFrame() const
925 { 925 {
926 return m_page.get() ? m_page->focusController()->focusedOrMainFrame() : 0; 926 return m_page.get() ? m_page->focusController()->focusedOrMainFrame() : 0;
927 } 927 }
928 928
929 WebViewImpl* WebViewImpl::fromPage(Page* page) 929 WebViewImpl* WebViewImpl::fromPage(Page* page)
930 { 930 {
931 if (!page) 931 if (!page)
932 return 0; 932 return 0;
933 933
934 return static_cast<ChromeClientImpl*>(page->chrome()->client())->webView(); 934 ChromeClientImpl* chromeClient = static_cast<ChromeClientImpl*>(page->chrome ()->client());
935 return static_cast<WebViewImpl*>(chromeClient->webView());
935 } 936 }
936 937
937 // WebWidget ------------------------------------------------------------------ 938 // WebWidget ------------------------------------------------------------------
938 939
939 void WebViewImpl::close() 940 void WebViewImpl::close()
940 { 941 {
941 RefPtr<WebFrameImpl> mainFrameImpl; 942 RefPtr<WebFrameImpl> mainFrameImpl;
942 943
943 if (m_page.get()) { 944 if (m_page.get()) {
944 // Initiate shutdown for the entire frameset. This will cause a lot of 945 // Initiate shutdown for the entire frameset. This will cause a lot of
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 m_temporaryOnscreenGraphicsContext3D = GraphicsContext3D::create(getComp ositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyTo HostWindow); 2507 m_temporaryOnscreenGraphicsContext3D = GraphicsContext3D::create(getComp ositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyTo HostWindow);
2507 if (m_temporaryOnscreenGraphicsContext3D) 2508 if (m_temporaryOnscreenGraphicsContext3D)
2508 m_temporaryOnscreenGraphicsContext3D->reshape(std::max(1, m_size.wid th), std::max(1, m_size.height)); 2509 m_temporaryOnscreenGraphicsContext3D->reshape(std::max(1, m_size.wid th), std::max(1, m_size.height));
2509 return GraphicsContext3DInternal::extractWebGraphicsContext3D(m_temporar yOnscreenGraphicsContext3D.get()); 2510 return GraphicsContext3DInternal::extractWebGraphicsContext3D(m_temporar yOnscreenGraphicsContext3D.get());
2510 } 2511 }
2511 #endif 2512 #endif
2512 return 0; 2513 return 0;
2513 } 2514 }
2514 2515
2515 } // namespace WebKit 2516 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/StorageNamespaceProxy.cpp ('k') | Source/WebKit/mac/WebCoreSupport/WebChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698