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

Side by Side Diff: chrome/browser/ui/panels/native_panel.h

Issue 7981012: Add Mouse hover behavior to Mac Panels when minimized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused constant Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // when it is expanded. 80 // when it is expanded.
81 virtual int GetRestoredHeight() const = 0; 81 virtual int GetRestoredHeight() const = 0;
82 virtual void SetRestoredHeight(int height) = 0; 82 virtual void SetRestoredHeight(int height) = 0;
83 }; 83 };
84 84
85 // A NativePanel utility interface used for accessing elements of the 85 // A NativePanel utility interface used for accessing elements of the
86 // native panel used only by test automation. 86 // native panel used only by test automation.
87 class NativePanelTesting { 87 class NativePanelTesting {
88 public: 88 public:
89 static NativePanelTesting* Create(NativePanel* native_panel); 89 static NativePanelTesting* Create(NativePanel* native_panel);
90 // TODO(dimich) Remove this method, there is PanelMouseWatcher::GetInstance().
prasadt 2011/09/21 16:54:15 We don't compile the implementation of GetInstance
jennb 2011/09/21 17:48:19 The build break was because there was no implement
Dmitry Titov 2011/09/21 20:38:51 Indeed. With GetInstance() implemented on all plat
prasadt1 2011/09/21 21:33:15 True but "all platforms" seems to be a bit of a mo
dcheng 2011/09/21 22:12:41 Just my two cents, but testing in general seems li
90 static PanelMouseWatcher* GetPanelMouseWatcherInstance(); 91 static PanelMouseWatcher* GetPanelMouseWatcherInstance();
91 92
92 // clang gives error on delete if the destructor is not virtual. 93 // clang gives error on delete if the destructor is not virtual.
93 virtual ~NativePanelTesting() {} 94 virtual ~NativePanelTesting() {}
94 95
95 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0; 96 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0;
96 virtual void ReleaseMouseButtonTitlebar() = 0; 97 virtual void ReleaseMouseButtonTitlebar() = 0;
97 virtual void DragTitlebar(int delta_x, int delta_y) = 0; 98 virtual void DragTitlebar(int delta_x, int delta_y) = 0;
98 virtual void CancelDragTitlebar() = 0; 99 virtual void CancelDragTitlebar() = 0;
99 virtual void FinishDragTitlebar() = 0; 100 virtual void FinishDragTitlebar() = 0;
100 virtual void SetMousePositionForMinimizeRestore(const gfx::Point& point) = 0; 101 virtual void SetMousePositionForMinimizeRestore(const gfx::Point& point) = 0;
101 102
102 virtual int TitleOnlyHeight() const = 0; 103 virtual int TitleOnlyHeight() const = 0;
103 }; 104 };
104 105
105 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 106 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698