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

Side by Side Diff: views/widget/tooltip_window_gtk.h

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/tooltip_manager.h ('k') | views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_ 5 #ifndef VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_
6 #define VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_ 6 #define VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ui/base/gtk/gtk_integers.h" 12 #include "ui/base/gtk/gtk_integers.h"
13 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
14 #include "views/views_api.h" 14 #include "views/views_export.h"
15 15
16 typedef struct _GdkEventExpose GdkEventExpose; 16 typedef struct _GdkEventExpose GdkEventExpose;
17 typedef struct _GtkLabel GtkLabel; 17 typedef struct _GtkLabel GtkLabel;
18 typedef struct _GtkWidget GtkWidget; 18 typedef struct _GtkWidget GtkWidget;
19 typedef struct _GtkStyle GtkStyle; 19 typedef struct _GtkStyle GtkStyle;
20 20
21 namespace views { 21 namespace views {
22 22
23 // TooltipWindowGtk provides a customized tooltip window and gives us a 23 // TooltipWindowGtk provides a customized tooltip window and gives us a
24 // chance to apply RGBA colormap on it. This enables the GTK theme engine to 24 // chance to apply RGBA colormap on it. This enables the GTK theme engine to
25 // draw tooltip with nice shadow and rounded corner on ChromeOS. 25 // draw tooltip with nice shadow and rounded corner on ChromeOS.
26 class VIEWS_API TooltipWindowGtk { 26 class VIEWS_EXPORT TooltipWindowGtk {
27 public: 27 public:
28 explicit TooltipWindowGtk(GtkWidget* widget); 28 explicit TooltipWindowGtk(GtkWidget* widget);
29 virtual ~TooltipWindowGtk(); 29 virtual ~TooltipWindowGtk();
30 30
31 // Sets tooltip text to display. 31 // Sets tooltip text to display.
32 void SetTooltipText(const std::wstring& text); 32 void SetTooltipText(const std::wstring& text);
33 33
34 GtkLabel* label(); 34 GtkLabel* label();
35 35
36 protected: 36 protected:
(...skipping 12 matching lines...) Expand all
49 // The alignment and label widgets contained of the tooltip window. 49 // The alignment and label widgets contained of the tooltip window.
50 GtkWidget* alignment_; 50 GtkWidget* alignment_;
51 GtkWidget* label_; 51 GtkWidget* label_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(TooltipWindowGtk); 53 DISALLOW_COPY_AND_ASSIGN(TooltipWindowGtk);
54 }; 54 };
55 55
56 } // namespace views 56 } // namespace views
57 57
58 #endif // VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_ 58 #endif // VIEWS_WIDGET_TOOLTIP_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « views/widget/tooltip_manager.h ('k') | views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698