| Index: chrome/browser/ui/panels/native_panel.h
|
| diff --git a/chrome/browser/ui/panels/native_panel.h b/chrome/browser/ui/panels/native_panel.h
|
| index a67fe19f9589a65c31b1ef45c51f0c849e18b604..74d677ec37bfe864e88d7675598213af95c5aacb 100644
|
| --- a/chrome/browser/ui/panels/native_panel.h
|
| +++ b/chrome/browser/ui/panels/native_panel.h
|
| @@ -62,18 +62,23 @@ class NativePanel {
|
| virtual bool IsDrawingAttention() const = 0;
|
| virtual Browser* GetPanelBrowser() const = 0;
|
| virtual void DestroyPanelBrowser() = 0;
|
| -
|
| - // Returns a pointer to the testing interface to the native panel.
|
| - virtual NativePanelTesting* GetNativePanelTesting() = 0;
|
| };
|
|
|
| // A NativePanel utility interface used for accessing elements of the
|
| // native panel used only by test automation.
|
| class NativePanelTesting {
|
| public:
|
| + static NativePanelTesting* Create(NativePanel* native_panel);
|
|
|
| - protected:
|
| + // Need a virtual destructor defined to be able to use the instance inside a
|
| + // scoped_ptr<>.
|
| virtual ~NativePanelTesting() {}
|
| +
|
| + virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0;
|
| + virtual void ReleaseMouseButtonTitlebar() = 0;
|
| + virtual void DragTitlebar(int delta_x, int delta_y) = 0;
|
| + virtual void CancelDragTitlebar() = 0;
|
| + virtual void FinishDragTitlebar() = 0;
|
| };
|
|
|
| #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
|
|
|