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

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

Issue 8479042: UI polish for certificate viewer (Closed) Base URL: /usr/local/google/home/bshe/NoTouchChromium/../TouchChromium/src/@trunk
Patch Set: Remove body margins of two internal pages(due to the changes in tabs.css file). Created 9 years, 1 month 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
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_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/frame/bubble_window.h" 9 #include "chrome/browser/chromeos/frame/bubble_window.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // View overrides: 50 // View overrides:
51 virtual gfx::Insets GetInsets() const OVERRIDE; 51 virtual gfx::Insets GetInsets() const OVERRIDE;
52 virtual gfx::Size GetPreferredSize() OVERRIDE; 52 virtual gfx::Size GetPreferredSize() OVERRIDE;
53 virtual void Layout() OVERRIDE; 53 virtual void Layout() OVERRIDE;
54 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 54 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
55 55
56 // Overridden from views::ButtonListener: 56 // Overridden from views::ButtonListener:
57 virtual void ButtonPressed(views::Button* sender, const views::Event& event) 57 virtual void ButtonPressed(views::Button* sender, const views::Event& event)
58 OVERRIDE; 58 OVERRIDE;
59 59
60 gfx::Insets GetOffsetInsets() const;
flackr 2011/11/21 20:43:31 Don't need extra method for single use.
bshe 2011/11/22 16:26:24 Done.
60 void StartThrobber(); 61 void StartThrobber();
61 void StopThrobber(); 62 void StopThrobber();
62 63
63 private: 64 private:
64 // The window that owns this view. 65 // The window that owns this view.
65 views::Widget* frame_; 66 views::Widget* frame_;
66 67
67 // Allows to tweak appearance of the view. 68 // Allows to tweak appearance of the view.
68 DialogStyle style_; 69 DialogStyle style_;
69 70
70 // Title label 71 // Title label
71 views::Label* title_; 72 views::Label* title_;
72 73
73 // The bounds of the client view, in this view's coordinates. 74 // The bounds of the client view, in this view's coordinates.
74 gfx::Rect client_view_bounds_; 75 gfx::Rect client_view_bounds_;
75 76
76 // Close button for STYLE_XBAR case. 77 // Close button for STYLE_XBAR case.
77 views::ImageButton* close_button_; 78 views::ImageButton* close_button_;
78 79
79 // Throbber is optional. Employed by STYLE_THROBBER. 80 // Throbber is optional. Employed by STYLE_THROBBER.
80 views::Throbber* throbber_; 81 views::Throbber* throbber_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 83 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
83 }; 84 };
84 85
85 } // namespace chromeos 86 } // namespace chromeos
86 87
87 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_ 88 #endif // CHROME_BROWSER_CHROMEOS_FRAME_BUBBLE_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698