OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/common/content_constants.h" | 28 #include "content/public/common/content_constants.h" |
29 #include "content/public/common/content_paths.h" | 29 #include "content/public/common/content_paths.h" |
30 #include "content/public/common/process_type.h" | 30 #include "content/public/common/process_type.h" |
31 #include "content/public/common/webplugininfo.h" | 31 #include "content/public/common/webplugininfo.h" |
32 #include "content/public/test/browser_test_utils.h" | 32 #include "content/public/test/browser_test_utils.h" |
33 #include "content/public/test/test_utils.h" | 33 #include "content/public/test/test_utils.h" |
34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
35 | 35 |
36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
37 #include "content/public/browser/web_contents_view.h" | 37 #include "content/public/browser/web_contents_view.h" |
38 #include "ui/aura/root_window.h" | |
39 #include "ui/aura/window.h" | 38 #include "ui/aura/window.h" |
| 39 #include "ui/aura/window_event_dispatcher.h" |
40 #endif | 40 #endif |
41 | 41 |
42 using content::BrowserThread; | 42 using content::BrowserThread; |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 class CallbackBarrier : public base::RefCountedThreadSafe<CallbackBarrier> { | 46 class CallbackBarrier : public base::RefCountedThreadSafe<CallbackBarrier> { |
47 public: | 47 public: |
48 explicit CallbackBarrier(const base::Closure& target_callback) | 48 explicit CallbackBarrier(const base::Closure& target_callback) |
49 : target_callback_(target_callback), | 49 : target_callback_(target_callback), |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 HWND hwnd = tab->GetView()->GetNativeView()->GetDispatcher()->host()-> | 330 HWND hwnd = tab->GetView()->GetNativeView()->GetDispatcher()->host()-> |
331 GetAcceleratedWidget(); | 331 GetAcceleratedWidget(); |
332 EnumChildWindows(hwnd, EnumerateChildren,reinterpret_cast<LPARAM>(&child)); | 332 EnumChildWindows(hwnd, EnumerateChildren,reinterpret_cast<LPARAM>(&child)); |
333 | 333 |
334 RECT region; | 334 RECT region; |
335 int result = GetWindowRgnBox(child, ®ion); | 335 int result = GetWindowRgnBox(child, ®ion); |
336 ASSERT_NE(result, NULLREGION); | 336 ASSERT_NE(result, NULLREGION); |
337 } | 337 } |
338 | 338 |
339 #endif | 339 #endif |
OLD | NEW |