summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-08 12:07:23 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-08 12:07:23 +0000
commit3c2fe4e986f41e271c2502dc64b0f47f213b7d58 (patch)
tree296db6e5b18d33cffd355fe82792cf25c9cbb467 /chrome/test
parentec0722e0916a2215fcf9a7859b17214d400d164b (diff)
downloadchromium_src-3c2fe4e986f41e271c2502dc64b0f47f213b7d58.zip
chromium_src-3c2fe4e986f41e271c2502dc64b0f47f213b7d58.tar.gz
chromium_src-3c2fe4e986f41e271c2502dc64b0f47f213b7d58.tar.bz2
Porting in chrome/ (add 6 files to Linux SCons build)
Review URL: http://codereview.chromium.org/17052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/automation/autocomplete_edit_proxy.h35
-rw-r--r--chrome/test/automation/automation_messages_internal.h57
2 files changed, 62 insertions, 30 deletions
diff --git a/chrome/test/automation/autocomplete_edit_proxy.h b/chrome/test/automation/autocomplete_edit_proxy.h
index fda27f8..85172d3 100644
--- a/chrome/test/automation/autocomplete_edit_proxy.h
+++ b/chrome/test/automation/autocomplete_edit_proxy.h
@@ -87,18 +87,29 @@ struct ParamTraits<AutocompleteMatchData> {
}
static void Log(const param_type& p, std::wstring* l) {
- l->append(StringPrintf(L"[%ls %d %ls %ls %d %ls %ls %ls %ls %ls %ls]",
- UTF8ToWide(p.provider_name),
- p.relevance,
- p.deletable ? L"true" : L"false",
- p.fill_into_edit,
- p.inline_autocomplete_offset,
- p.destination_url,
- p.contents,
- p.description,
- p.is_history_what_you_typed_match ? L"true" : L"false",
- UTF8ToWide(p.type),
- p.starred ? L"true" : L"false"));
+ l->append(L"[");
+ l->append(UTF8ToWide(p.provider_name));
+ l->append(L" ");
+ l->append(IntToWString(p.relevance));
+ l->append(L" ");
+ l->append(p.deletable ? L"true" : L"false");
+ l->append(L" ");
+ l->append(p.fill_into_edit);
+ l->append(L" ");
+ l->append(IntToWString(p.inline_autocomplete_offset));
+ l->append(L" ");
+ l->append(UTF8ToWide(p.destination_url.spec()));
+ l->append(L" ");
+ l->append(p.contents);
+ l->append(L" ");
+ l->append(p.description);
+ l->append(L" ");
+ l->append(p.is_history_what_you_typed_match ? L"true" : L"false");
+ l->append(L" ");
+ l->append(UTF8ToWide(p.type));
+ l->append(L" ");
+ l->append(p.starred ? L"true" : L"false");
+ l->append(L"]");
}
};
} // namespace IPC
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h
index 6ed478c..8005606 100644
--- a/chrome/test/automation/automation_messages_internal.h
+++ b/chrome/test/automation/automation_messages_internal.h
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
+#include "base/basictypes.h"
#include "base/gfx/rect.h"
#include "chrome/common/ipc_message_macros.h"
#include "chrome/common/navigation_types.h"
@@ -147,6 +148,9 @@ IPC_BEGIN_MESSAGES(Automation, 0)
bool /* success flag*/,
GURL)
+#if defined(OS_WIN)
+ // TODO(port): Port these messages.
+ //
// This message requests the HWND of the top-level window that corresponds
// to the given automation handle.
// The response contains the HWND value, which is 0 if the call fails.
@@ -155,6 +159,15 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED1(AutomationMsg_WindowHWNDResponse,
HWND /* Win32 handle */)
+ // This message requests the HWND of the tab that corresponds
+ // to the given automation handle.
+ // The response contains the HWND value, which is 0 if the call fails.
+ IPC_MESSAGE_ROUTED1(AutomationMsg_TabHWNDRequest,
+ int /* tab_handle */)
+ IPC_MESSAGE_ROUTED1(AutomationMsg_TabHWNDResponse,
+ HWND /* win32 Window Handle*/)
+#endif // defined(OS_WIN)
+
// This message notifies the AutomationProxy that a handle that it has
// previously been given is now invalid. (For instance, if the handle
// represented a window which has now been closed.) The parameter
@@ -166,14 +179,6 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// associated resource. The parameter value is the handle.
IPC_MESSAGE_ROUTED1(AutomationMsg_HandleUnused, int)
- // This message requests the HWND of the tab that corresponds
- // to the given automation handle.
- // The response contains the HWND value, which is 0 if the call fails.
- IPC_MESSAGE_ROUTED1(AutomationMsg_TabHWNDRequest,
- int /* tab_handle */)
- IPC_MESSAGE_ROUTED1(AutomationMsg_TabHWNDResponse,
- HWND /* win32 Window Handle*/)
-
// This message tells the AutomationProvider to provide the given
// authentication data to the specified tab, in response to an HTTP/FTP
// authentication challenge.
@@ -284,6 +289,9 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED3(AutomationMsg_WindowViewBoundsRequest, int, int, bool)
IPC_MESSAGE_ROUTED2(AutomationMsg_WindowViewBoundsResponse, bool, gfx::Rect)
+#if defined(OS_WIN)
+ // TODO(port): Port these messages.
+ //
// This message requests that a drag be performed in window coordinate space
// Request:
// int - the handle of the window that's the context for this drag
@@ -296,6 +304,7 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED4(AutomationMsg_WindowDragRequest,
int, std::vector<POINT>, int, bool)
IPC_MESSAGE_ROUTED1(AutomationMsg_WindowDragResponse, bool)
+#endif // defined(OS_WIN)
// Similar to AutomationMsg_InitialLoadsComplete, this indicates that the
// new tab ui has completed the initial load of its data.
@@ -408,6 +417,9 @@ IPC_BEGIN_MESSAGES(Automation, 0)
bool /* success flag */,
int /* AutocompleteEdit handle */)
+#if defined(OS_WIN)
+ // TODO(port): Port this message.
+ //
// This message requests that a mouse click be performed in window coordinate
// space.
// Request:
@@ -416,6 +428,7 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// int - the flags which identify the mouse button(s) for the click, as
// defined in chrome/views/event.h
IPC_MESSAGE_ROUTED3(AutomationMsg_WindowClickRequest, int, POINT, int)
+#endif // defined(OS_WIN)
// This message requests that a key press be performed.
// Request:
@@ -425,6 +438,9 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// associated for, as defined in chrome/views/event.h
IPC_MESSAGE_ROUTED3(AutomationMsg_WindowKeyPressRequest, int, wchar_t, int)
+#if defined(OS_WIN)
+ // TODO(port): Port these messages.
+ //
// This message notifies the AutomationProvider to create a tab which is
// hosted by an external process. The response contains the HWND of the
// window that contains the external tab and the handle to the newly
@@ -432,6 +448,7 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// The second parameter is the url to be loaded in the new tab.
IPC_MESSAGE_ROUTED0(AutomationMsg_CreateExternalTab)
IPC_MESSAGE_ROUTED2(AutomationMsg_CreateExternalTabResponse, HWND, int)
+#endif // defined(OS_WIN)
// This message notifies the AutomationProvider to navigate to a specified
// url in the external tab with given handle. The first parameter is the
@@ -494,6 +511,9 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED1(AutomationMsg_CloseBrowserRequest, int)
IPC_MESSAGE_ROUTED2(AutomationMsg_CloseBrowserResponse, bool, bool)
+#if defined(OS_WIN)
+ // TODO(port): Port these messages.
+ //
// This message sets the keyboard accelarators to be used by an externally
// hosted tab. This call is not valid on a regular tab hosted within
// Chrome.
@@ -516,16 +536,6 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// host saying whether it processed the accelerator
IPC_MESSAGE_ROUTED1(AutomationMsg_HandleAccelerator, MSG)
- // This message is an outgoing message from Chrome to an external host.
- // It is a request to open a url
- // Request:
- // -GURL: The URL to open
- // -int: The WindowOpenDisposition that specifies where the URL should
- // be opened (new tab, new window etc).
- // Response:
- // None expected
- IPC_MESSAGE_ROUTED2(AutomationMsg_OpenURL, GURL, int)
-
// This message is sent by the container of an externally hosted tab to
// reflect any accelerator keys that it did not process. This gives the
// tab a chance to handle the keys
@@ -535,6 +545,17 @@ IPC_BEGIN_MESSAGES(Automation, 0)
// Response:
// None expected
IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessUnhandledAccelerator, int, MSG)
+#endif // defined(OS_WIN)
+
+ // This message is an outgoing message from Chrome to an external host.
+ // It is a request to open a url
+ // Request:
+ // -GURL: The URL to open
+ // -int: The WindowOpenDisposition that specifies where the URL should
+ // be opened (new tab, new window etc).
+ // Response:
+ // None expected
+ IPC_MESSAGE_ROUTED2(AutomationMsg_OpenURL, GURL, int)
// This message requests the provider to wait until the specified tab has
// finished restoring after session restore.