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

Unified Diff: chrome/browser/ui/panels/native_panel.h

Issue 7605009: Implement drag and drop testing in a platform independent way. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review feedback and build bot errors for windows. Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f0980e8e830281b30bbb68cab895b9fcace81718 100644
--- a/chrome/browser/ui/panels/native_panel.h
+++ b/chrome/browser/ui/panels/native_panel.h
@@ -62,18 +62,19 @@ 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:
- virtual ~NativePanelTesting() {}
+ virtual void PressLeftMouseButtonTitlebar(gfx::Point point) = 0;
jianli 2011/08/09 23:24:16 PressLeftMouseButtonOnTitlebar? Or simply as Press
prasadt 2011/08/09 23:49:41 I think its better to be explicit about it.
+ virtual void ReleaseMouseButtonTitlebar() = 0;
+ virtual void DragTitlebar(int delta_x, int delta_y) = 0;
+ virtual void CancelDragTitlebar() = 0;
jianli 2011/08/09 23:24:16 CancelDraggingTitlebar?
prasadt 2011/08/09 23:49:41 I like CancelDrag better. I'm thinking of Drag as
+ virtual void FinishDragTitlebar() = 0;
jianli 2011/08/09 23:24:16 ditto.
prasadt 2011/08/09 23:49:41 See above.
};
#endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698