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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "core/page/PagePopupClient.h" | 45 #include "core/page/PagePopupClient.h" |
46 #include "platform/TraceEvent.h" | 46 #include "platform/TraceEvent.h" |
47 #include "public/platform/WebCursorInfo.h" | 47 #include "public/platform/WebCursorInfo.h" |
48 #include "public/web/WebViewClient.h" | 48 #include "public/web/WebViewClient.h" |
49 #include "public/web/WebWidgetClient.h" | 49 #include "public/web/WebWidgetClient.h" |
50 #include "web/WebInputEventConversion.h" | 50 #include "web/WebInputEventConversion.h" |
51 #include "web/WebSettingsImpl.h" | 51 #include "web/WebSettingsImpl.h" |
52 #include "web/WebViewImpl.h" | 52 #include "web/WebViewImpl.h" |
53 | 53 |
54 using namespace WebCore; | 54 using namespace WebCore; |
| 55 using namespace std; |
55 | 56 |
56 namespace blink { | 57 namespace blink { |
57 | 58 |
58 class PagePopupChromeClient : public EmptyChromeClient { | 59 class PagePopupChromeClient : public EmptyChromeClient { |
59 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); | 60 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); |
60 WTF_MAKE_FAST_ALLOCATED; | 61 WTF_MAKE_FAST_ALLOCATED; |
61 | 62 |
62 public: | 63 public: |
63 explicit PagePopupChromeClient(WebPagePopupImpl* popup) | 64 explicit PagePopupChromeClient(WebPagePopupImpl* popup) |
64 : m_popup(popup) | 65 : m_popup(popup) |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 // A WebPagePopupImpl instance usually has two references. | 403 // A WebPagePopupImpl instance usually has two references. |
403 // - One owned by the instance itself. It represents the visible widget. | 404 // - One owned by the instance itself. It represents the visible widget. |
404 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 405 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
405 // WebPagePopupImpl to close. | 406 // WebPagePopupImpl to close. |
406 // We need them because the closing operation is asynchronous and the widget | 407 // We need them because the closing operation is asynchronous and the widget |
407 // can be closed while the WebViewImpl is unaware of it. | 408 // can be closed while the WebViewImpl is unaware of it. |
408 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 409 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
409 } | 410 } |
410 | 411 |
411 } // namespace blink | 412 } // namespace blink |
OLD | NEW |