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

Unified Diff: chrome/browser/ui/panels/panel_browser_view.cc

Issue 7633034: Use Titlebar instead of TitleBar consistently in panels code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.cc
diff --git a/chrome/browser/ui/panels/panel_browser_view.cc b/chrome/browser/ui/panels/panel_browser_view.cc
index e8753e194e981294c66c62ef4f842666348afc5e..0359b2ff36dad99cd2ed76245a2cb4e55a3bc630 100644
--- a/chrome/browser/ui/panels/panel_browser_view.cc
+++ b/chrome/browser/ui/panels/panel_browser_view.cc
@@ -143,7 +143,7 @@ void PanelBrowserView::OnWidgetActivationChanged(views::Widget* widget,
bool PanelBrowserView::AcceleratorPressed(
const views::Accelerator& accelerator) {
if (mouse_pressed_ && accelerator.key_code() == ui::VKEY_ESCAPE) {
- OnTitleBarMouseCaptureLost();
+ OnTitlebarMouseCaptureLost();
return true;
}
return BrowserView::AcceleratorPressed(accelerator);
@@ -216,7 +216,7 @@ void PanelBrowserView::OnPanelExpansionStateChanged(
SetBounds(bounds);
}
-bool PanelBrowserView::ShouldBringUpPanelTitleBar(int mouse_x,
+bool PanelBrowserView::ShouldBringUpPanelTitlebar(int mouse_x,
int mouse_y) const {
// We do not want to bring up other minimized panels if the mouse is over the
// panel that pops up the title-bar to attract attention.
@@ -247,7 +247,7 @@ gfx::NativeWindow PanelBrowserView::GetNativePanelHandle() {
return GetNativeHandle();
}
-void PanelBrowserView::UpdatePanelTitleBar() {
+void PanelBrowserView::UpdatePanelTitlebar() {
jianli 2011/08/12 21:34:51 ditto.
prasadt 2011/08/12 21:59:30 Done.
UpdateTitleBar();
}
@@ -313,14 +313,14 @@ PanelBrowserFrameView* PanelBrowserView::GetFrameView() const {
return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView());
}
-bool PanelBrowserView::OnTitleBarMousePressed(const gfx::Point& location) {
+bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) {
mouse_pressed_ = true;
mouse_pressed_point_ = location;
mouse_dragging_ = false;
return true;
}
-bool PanelBrowserView::OnTitleBarMouseDragged(const gfx::Point& location) {
+bool PanelBrowserView::OnTitlebarMouseDragged(const gfx::Point& location) {
if (!mouse_pressed_)
return false;
@@ -335,7 +335,7 @@ bool PanelBrowserView::OnTitleBarMouseDragged(const gfx::Point& location) {
return true;
}
-bool PanelBrowserView::OnTitleBarMouseReleased() {
+bool PanelBrowserView::OnTitlebarMouseReleased() {
if (mouse_dragging_)
return EndDragging(false);
@@ -355,7 +355,7 @@ bool PanelBrowserView::OnTitleBarMouseReleased() {
return true;
}
-bool PanelBrowserView::OnTitleBarMouseCaptureLost() {
+bool PanelBrowserView::OnTitlebarMouseCaptureLost() {
return EndDragging(true);
}
@@ -401,23 +401,23 @@ NativePanelTestingWin::NativePanelTestingWin(
void NativePanelTestingWin::PressLeftMouseButtonTitlebar(
const gfx::Point& point) {
- panel_browser_view_->OnTitleBarMousePressed(point);
+ panel_browser_view_->OnTitlebarMousePressed(point);
}
void NativePanelTestingWin::ReleaseMouseButtonTitlebar() {
- panel_browser_view_->OnTitleBarMouseReleased();
+ panel_browser_view_->OnTitlebarMouseReleased();
}
void NativePanelTestingWin::DragTitlebar(int delta_x, int delta_y) {
gfx::Rect current_bounds = panel_browser_view_->panel()->GetRestoredBounds();
- panel_browser_view_->OnTitleBarMouseDragged(gfx::Point(
+ panel_browser_view_->OnTitlebarMouseDragged(gfx::Point(
current_bounds.x() + delta_x, current_bounds.y() + delta_y));
}
void NativePanelTestingWin::CancelDragTitlebar() {
- panel_browser_view_->OnTitleBarMouseCaptureLost();
+ panel_browser_view_->OnTitlebarMouseCaptureLost();
}
void NativePanelTestingWin::FinishDragTitlebar() {
- panel_browser_view_->OnTitleBarMouseReleased();
+ panel_browser_view_->OnTitlebarMouseReleased();
}

Powered by Google App Engine
This is Rietveld 408576698