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

Unified Diff: chrome/browser/ui/panels/panel_browser_view.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: More code review feedback. 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
Index: chrome/browser/ui/panels/panel_browser_view.h
diff --git a/chrome/browser/ui/panels/panel_browser_view.h b/chrome/browser/ui/panels/panel_browser_view.h
index e6b72768512a286b5fd74a22fac50fffd2363ce8..5b82d80758818b0d6be13881cd939606c1effc0b 100644
--- a/chrome/browser/ui/panels/panel_browser_view.h
+++ b/chrome/browser/ui/panels/panel_browser_view.h
@@ -15,6 +15,7 @@
class Browser;
class Panel;
+class NativePanelTestingWin;
class PanelBrowserFrameView;
namespace ui {
class SlideAnimation;
@@ -23,7 +24,6 @@ class SlideAnimation;
// A browser view that implements Panel specific behavior.
class PanelBrowserView : public BrowserView,
public NativePanel,
- public NativePanelTesting,
public ui::AnimationDelegate {
public:
PanelBrowserView(Browser* browser, Panel* panel, const gfx::Rect& bounds);
@@ -37,12 +37,13 @@ class PanelBrowserView : public BrowserView,
// Called from frame view when title bar receives a mouse event.
// Return true if the event is handled.
- bool OnTitleBarMousePressed(const views::MouseEvent& event);
- bool OnTitleBarMouseDragged(const views::MouseEvent& event);
- bool OnTitleBarMouseReleased(const views::MouseEvent& event);
+ bool OnTitleBarMousePressed(const gfx::Point& location);
+ bool OnTitleBarMouseDragged(const gfx::Point& location);
+ bool OnTitleBarMouseReleased();
bool OnTitleBarMouseCaptureLost();
private:
+ friend class NativePanelTestingWin;
friend class PanelBrowserViewTest;
FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel);
FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton);
@@ -90,7 +91,6 @@ class PanelBrowserView : public BrowserView,
virtual bool IsDrawingAttention() const OVERRIDE;
virtual Browser* GetPanelBrowser() const OVERRIDE;
virtual void DestroyPanelBrowser() OVERRIDE;
- virtual NativePanelTesting* GetNativePanelTesting() OVERRIDE;
// Overridden from AnimationDelegate:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698