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

Side by Side Diff: chrome/browser/ui/views/first_run_bubble.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 8 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 #include "chrome/browser/ui/views/first_run_bubble.h" 5 #include "chrome/browser/ui/views/first_run_bubble.h"
6 6
7 #include "chrome/browser/first_run/first_run.h" 7 #include "chrome/browser/first_run/first_run.h"
8 #include "chrome/browser/search_engines/util.h" 8 #include "chrome/browser/search_engines/util.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/chrome_pages.h" 10 #include "chrome/browser/ui/chrome_pages.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 layout->AddView(change); 75 layout->AddView(change);
76 layout->StartRowWithPadding(0, 0, 0, 76 layout->StartRowWithPadding(0, 0, 0,
77 views::kRelatedControlSmallVerticalSpacing); 77 views::kRelatedControlSmallVerticalSpacing);
78 layout->AddView(subtext, columns->num_columns(), 1); 78 layout->AddView(subtext, columns->num_columns(), 1);
79 } 79 }
80 80
81 FirstRunBubble::FirstRunBubble(Browser* browser, views::View* anchor_view) 81 FirstRunBubble::FirstRunBubble(Browser* browser, views::View* anchor_view)
82 : views::BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT), 82 : views::BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT),
83 browser_(browser) { 83 browser_(browser) {
84 // Compensate for built-in vertical padding in the anchor view's image. 84 // Compensate for built-in vertical padding in the anchor view's image.
85 set_anchor_insets( 85 set_anchor_view_insets(
86 gfx::Insets(kAnchorVerticalInset, 0, kAnchorVerticalInset, 0)); 86 gfx::Insets(kAnchorVerticalInset, 0, kAnchorVerticalInset, 0));
87 } 87 }
88 88
89 FirstRunBubble::~FirstRunBubble() { 89 FirstRunBubble::~FirstRunBubble() {
90 } 90 }
91 91
92 void FirstRunBubble::LinkClicked(views::Link* source, int event_flags) { 92 void FirstRunBubble::LinkClicked(views::Link* source, int event_flags) {
93 first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_CHANGE_INVOKED); 93 first_run::LogFirstRunMetric(first_run::FIRST_RUN_BUBBLE_CHANGE_INVOKED);
94 94
95 GetWidget()->Close(); 95 GetWidget()->Close();
96 if (browser_) 96 if (browser_)
97 chrome::ShowSearchEngineSettings(browser_); 97 chrome::ShowSearchEngineSettings(browser_);
98 } 98 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/disabled_extensions_view.cc ('k') | chrome/browser/ui/views/global_error_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698