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

Side by Side Diff: chrome/browser/ui/views/constrained_window_frame_simple.h

Issue 11077006: Correct padding and focus ring for frameless constrained window dialog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/window/non_client_view.h" 10 #include "ui/views/window/non_client_view.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual gfx::Size GetPreferredSize() OVERRIDE; 58 virtual gfx::Size GetPreferredSize() OVERRIDE;
59 59
60 // Overridden from ButtonListener 60 // Overridden from ButtonListener
61 virtual void ButtonPressed(views::Button* sender, 61 virtual void ButtonPressed(views::Button* sender,
62 const ui::Event& event) OVERRIDE; 62 const ui::Event& event) OVERRIDE;
63 63
64 HeaderViews* CreateDefaultHeaderView(); 64 HeaderViews* CreateDefaultHeaderView();
65 65
66 views::ImageButton* CreateCloseButton(); 66 views::ImageButton* CreateCloseButton();
67 67
68 // Add padding to the given View object.
69 views::View* AddPadding(
70 views::View* viewToPad,
71 int top,
72 int left,
73 int bottom,
74 int right);
75
68 ConstrainedWindowViews* container_; 76 ConstrainedWindowViews* container_;
69 77
70 views::LayoutManager* layout_; 78 views::LayoutManager* layout_;
71 79
72 scoped_ptr<HeaderViews> header_views_; 80 scoped_ptr<HeaderViews> header_views_;
73 81
74 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameSimple); 82 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowFrameSimple);
75 }; 83 };
76 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_ 84 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_FRAME_SIMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698