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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 263883004: NotificationController handles an ownership of NotificaitonClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 } 1370 }
1371 1371
1372 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() 1372 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported()
1373 { 1373 {
1374 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); 1374 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement()));
1375 if (container && container->supportsInputMethod()) 1375 if (container && container->supportsInputMethod())
1376 return container->plugin(); 1376 return container->plugin();
1377 return 0; 1377 return 0;
1378 } 1378 }
1379 1379
1380 NotificationPresenterImpl* WebLocalFrameImpl::notificationPresenterImpl() 1380 PassOwnPtr<NotificationPresenterImpl> WebLocalFrameImpl::notificationPresenterIm pl()
1381 { 1381 {
1382 if (!m_notificationPresenter.isInitialized() && m_client) 1382 if (!m_notificationPresenter->isInitialized() && m_client)
1383 m_notificationPresenter.initialize(m_client->notificationPresenter()); 1383 m_notificationPresenter->initialize(m_client->notificationPresenter());
1384 return &m_notificationPresenter; 1384 return m_notificationPresenter.release();
1385 } 1385 }
1386 1386
1387 int WebLocalFrameImpl::printBegin(const WebPrintParams& printParams, const WebNo de& constrainToNode) 1387 int WebLocalFrameImpl::printBegin(const WebPrintParams& printParams, const WebNo de& constrainToNode)
1388 { 1388 {
1389 ASSERT(!frame()->document()->isFrameSet()); 1389 ASSERT(!frame()->document()->isFrameSet());
1390 WebPluginContainerImpl* pluginContainer = 0; 1390 WebPluginContainerImpl* pluginContainer = 0;
1391 if (constrainToNode.isNull()) { 1391 if (constrainToNode.isNull()) {
1392 // If this is a plugin document, check if the plugin supports its own 1392 // If this is a plugin document, check if the plugin supports its own
1393 // printing. If it does, we will delegate all printing to that. 1393 // printing. If it does, we will delegate all printing to that.
1394 pluginContainer = pluginContainerFromFrame(frame()); 1394 pluginContainer = pluginContainerFromFrame(frame());
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 1980
1981 void WebLocalFrameImpl::invalidateAll() const 1981 void WebLocalFrameImpl::invalidateAll() const
1982 { 1982 {
1983 ASSERT(frame() && frame()->view()); 1983 ASSERT(frame() && frame()->view());
1984 FrameView* view = frame()->view(); 1984 FrameView* view = frame()->view();
1985 view->invalidateRect(view->frameRect()); 1985 view->invalidateRect(view->frameRect());
1986 invalidateScrollbar(); 1986 invalidateScrollbar();
1987 } 1987 }
1988 1988
1989 } // namespace blink 1989 } // namespace blink
OLDNEW
« Source/web/WebLocalFrameImpl.h ('K') | « Source/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698