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

Side by Side Diff: webkit/tools/test_shell/webview_host.h

Issue 255094: [Mac] Properly call setIsActive() when becoming and resigning key window. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "app/gfx/native_widget_types.h" 10 #include "app/gfx/native_widget_types.h"
(...skipping 26 matching lines...) Expand all
37 #if defined(OS_LINUX) 37 #if defined(OS_LINUX)
38 // Create a new plugin parent container for a given plugin XID. 38 // Create a new plugin parent container for a given plugin XID.
39 void CreatePluginContainer(gfx::PluginWindowHandle id); 39 void CreatePluginContainer(gfx::PluginWindowHandle id);
40 40
41 // Destroy the plugin parent container when a plugin has been destroyed. 41 // Destroy the plugin parent container when a plugin has been destroyed.
42 void DestroyPluginContainer(gfx::PluginWindowHandle id); 42 void DestroyPluginContainer(gfx::PluginWindowHandle id);
43 43
44 GtkPluginContainerManager* plugin_container_manager() { 44 GtkPluginContainerManager* plugin_container_manager() {
45 return &plugin_container_manager_; 45 return &plugin_container_manager_;
46 } 46 }
47 #elif defined(OS_MACOSX)
48 void SetIsActive(bool active);
47 #endif 49 #endif
48 50
49 protected: 51 protected:
50 #if defined(OS_WIN) 52 #if defined(OS_WIN)
51 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) { 53 virtual bool WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
52 return false; 54 return false;
53 } 55 }
54 #endif 56 #endif
55 57
56 #if defined(OS_LINUX) 58 #if defined(OS_LINUX)
57 // Helper class that creates and moves plugin containers. 59 // Helper class that creates and moves plugin containers.
58 GtkPluginContainerManager plugin_container_manager_; 60 GtkPluginContainerManager plugin_container_manager_;
59 #endif 61 #endif
60 }; 62 };
61 63
62 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_ 64 #endif // WEBKIT_TOOLS_TEST_SHELL_WEBVIEW_HOST_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698