summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/constrained_window_proxy.h
blob: cb0ff593bbedf3ef53e75af6ca1f4d689e7ab6d7 (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
32
33
34
// 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 CHROME_TEST_AUTOMATION_CONSTRAINED_WINDOW_PROXY_H__
#define CHROME_TEST_AUTOMATION_CONSTRAINED_WINDOW_PROXY_H__

#include <string>

#include "chrome/test/automation/automation_handle_tracker.h"

namespace gfx {
class Rect;
}

class ConstrainedWindowProxy : public AutomationResourceProxy {
public:
  ConstrainedWindowProxy(AutomationMessageSender* sender,
                         AutomationHandleTracker* tracker,
                         int handle)
      : AutomationResourceProxy(tracker, sender, handle) {}

  virtual ~ConstrainedWindowProxy() {}

  bool GetTitle(std::wstring* title) const;
  bool GetBoundsWithTimeout(gfx::Rect* bounds,
                            uint32 timeout_ms,
                            bool* is_timeout);

private:
  DISALLOW_EVIL_CONSTRUCTORS(ConstrainedWindowProxy);
};

#endif  // CHROME_TEST_AUTOMATION_CONSTRAINED_WINDOW_PROXY_H__