summaryrefslogtreecommitdiffstats
path: root/webkit/glue/find_in_page_request.h
blob: e1165202b91bfd8d7cea4ec02d0825623ec35952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_GLUE_FIND_IN_PAGE_REQUEST_H__
#define WEBKIT_GLUE_FIND_IN_PAGE_REQUEST_H__

#include <string>

// Parameters for a find in page request.
struct FindInPageRequest {
  // The id for the request, this message is passed in by the caller and
  // returned back with the reply so that the caller can start a new search and
  // choose to ignore packets that belonged to the last search.
  int request_id;

  // The word(s) to find on the page.
  std::wstring search_string;

  // Whether to search forward or backward within the page.
  bool forward;

  // Whether search should be Case sensitive.
  bool match_case;

  // Whether this operation is first request (Find) or a follow-up (FindNext).
  bool find_next;
};

#endif  // WEBKIT_GLUE_FIND_IN_PAGE_REQUEST_H__