OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "core/page/FocusController.h" | 48 #include "core/page/FocusController.h" |
49 #include "core/frame/Frame.h" | 49 #include "core/frame/Frame.h" |
50 #include "core/frame/FrameView.h" | 50 #include "core/frame/FrameView.h" |
51 #include "core/page/Page.h" | 51 #include "core/page/Page.h" |
52 #include "core/page/PagePopupClient.h" | 52 #include "core/page/PagePopupClient.h" |
53 #include "core/page/Settings.h" | 53 #include "core/page/Settings.h" |
54 | 54 |
55 using namespace WebCore; | 55 using namespace WebCore; |
56 using namespace std; | 56 using namespace std; |
57 | 57 |
58 namespace WebKit { | 58 namespace blink { |
59 | 59 |
60 class PagePopupChromeClient : public EmptyChromeClient { | 60 class PagePopupChromeClient : public EmptyChromeClient { |
61 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); | 61 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); |
62 WTF_MAKE_FAST_ALLOCATED; | 62 WTF_MAKE_FAST_ALLOCATED; |
63 | 63 |
64 public: | 64 public: |
65 explicit PagePopupChromeClient(WebPagePopupImpl* popup) | 65 explicit PagePopupChromeClient(WebPagePopupImpl* popup) |
66 : m_popup(popup) | 66 : m_popup(popup) |
67 { | 67 { |
68 ASSERT(m_popup->widgetClient()); | 68 ASSERT(m_popup->widgetClient()); |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 CRASH(); | 341 CRASH(); |
342 // A WebPagePopupImpl instance usually has two references. | 342 // A WebPagePopupImpl instance usually has two references. |
343 // - One owned by the instance itself. It represents the visible widget. | 343 // - One owned by the instance itself. It represents the visible widget. |
344 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 344 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
345 // WebPagePopupImpl to close. | 345 // WebPagePopupImpl to close. |
346 // We need them because the closing operation is asynchronous and the widget | 346 // We need them because the closing operation is asynchronous and the widget |
347 // can be closed while the WebViewImpl is unaware of it. | 347 // can be closed while the WebViewImpl is unaware of it. |
348 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 348 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
349 } | 349 } |
350 | 350 |
351 } // namespace WebKit | 351 } // namespace blink |
OLD | NEW |