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

Unified Diff: ui/views/controls/scrollbar/native_scroll_bar_gtk.h

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ui/views/controls/native_control_gtk.cc ('k') | ui/views/controls/scrollbar/native_scroll_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/native_scroll_bar_gtk.h
diff --git a/ui/views/controls/scrollbar/native_scroll_bar_gtk.h b/ui/views/controls/scrollbar/native_scroll_bar_gtk.h
deleted file mode 100644
index e9a5ed5479dd284f0fbd7e5e6a29fc454318bb96..0000000000000000000000000000000000000000
--- a/ui/views/controls/scrollbar/native_scroll_bar_gtk.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_
-#define UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "ui/views/controls/native_control_gtk.h"
-#include "ui/views/controls/scrollbar/native_scroll_bar_wrapper.h"
-
-namespace views {
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// NativeScrollBarGtk
-//
-// A View subclass that wraps a Native gtk scrollbar control.
-//
-// A scrollbar is either horizontal or vertical.
-//
-/////////////////////////////////////////////////////////////////////////////
-class NativeScrollBarGtk : public NativeControlGtk,
- public NativeScrollBarWrapper {
- public:
- // Creates new scrollbar, either horizontal or vertical.
- explicit NativeScrollBarGtk(NativeScrollBar* native_scroll_bar);
- virtual ~NativeScrollBarGtk();
-
- private:
- // Overridden from View for layout purpose.
- virtual void Layout() OVERRIDE;
- virtual gfx::Size GetPreferredSize() OVERRIDE;
-
- // Overridden from View for keyboard UI purpose.
- virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE;
- virtual bool OnMouseWheel(const MouseWheelEvent& e) OVERRIDE;
-
- // Overridden from NativeControlGtk.
- virtual void CreateNativeControl() OVERRIDE;
-
- // Overridden from NativeScrollBarWrapper.
- virtual int GetPosition() const OVERRIDE;
- virtual View* GetView() OVERRIDE;
- virtual void Update(int viewport_size,
- int content_size,
- int current_pos) OVERRIDE;
-
- // Moves the scrollbar by the given value. Negative value is allowed.
- // (moves upward)
- void MoveBy(int o);
-
- // Moves the scrollbar by the page (viewport) size.
- void MovePage(bool positive);
-
- // Moves the scrollbar by predefined step size.
- void MoveStep(bool positive);
-
- // Moves the scrollbar to the given position. MoveTo(0) moves it to the top.
- void MoveTo(int p);
-
- // Moves the scrollbar to the end.
- void MoveToBottom();
-
- // Invoked when the scrollbar's position is changed.
- void ValueChanged();
- static void CallValueChanged(GtkWidget* widget,
- NativeScrollBarGtk* scroll_bar);
-
- // The NativeScrollBar we are bound to.
- NativeScrollBar* native_scroll_bar_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NativeScrollBarGtk);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_SCROLLBAR_NATIVE_SCROLL_BAR_GTK_H_
« no previous file with comments | « ui/views/controls/native_control_gtk.cc ('k') | ui/views/controls/scrollbar/native_scroll_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698