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

Side by Side Diff: chrome/browser/chromeos/frame/bubble_window.h

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "views/window/window_gtk.h" 10 #include "views/window/window_gtk.h"
(...skipping 20 matching lines...) Expand all
31 }; 31 };
32 32
33 static views::Window* Create(gfx::NativeWindow parent, 33 static views::Window* Create(gfx::NativeWindow parent,
34 const gfx::Rect& bounds, 34 const gfx::Rect& bounds,
35 Style style, 35 Style style,
36 views::WindowDelegate* window_delegate); 36 views::WindowDelegate* window_delegate);
37 37
38 static const SkColor kBackgroundColor; 38 static const SkColor kBackgroundColor;
39 39
40 protected: 40 protected:
41 BubbleWindow(); 41 explicit BubbleWindow(views::Window* window);
42 42
43 // Overidden from views::WindowGtk: 43 // Overidden from views::WindowGtk:
44 virtual void InitNativeWidget( 44 virtual void InitNativeWidget(
45 const views::Widget::InitParams& params) OVERRIDE; 45 const views::Widget::InitParams& params) OVERRIDE;
46 46
47 // Trims the window margins and rounds off the corners. 47 // Trims the window margins and rounds off the corners.
48 void TrimMargins(int margin_left, int margin_right, int margin_top, 48 void TrimMargins(int margin_left, int margin_right, int margin_top,
49 int margin_bottom, int border_radius); 49 int margin_bottom, int border_radius);
50 }; 50 };
51 51
52 } // namespace chromeos 52 } // namespace chromeos
53 53
54 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_ 54 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/bubble_frame_view.cc ('k') | chrome/browser/chromeos/frame/bubble_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698