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

Side by Side Diff: chrome/browser/views/options/advanced_contents_view.cc

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/options/advanced_contents_view.h" 5 #include "chrome/browser/views/options/advanced_contents_view.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <cryptuiapi.h> 9 #include <cryptuiapi.h>
10 #pragma comment(lib, "cryptui.lib") 10 #pragma comment(lib, "cryptui.lib")
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 void GeneralSection::LinkActivated(views::Link* source, int event_flags) { 358 void GeneralSection::LinkActivated(views::Link* source, int event_flags) {
359 if (source == learn_more_link_) { 359 if (source == learn_more_link_) {
360 // We open a new browser window so the Options dialog doesn't get lost 360 // We open a new browser window so the Options dialog doesn't get lost
361 // behind other windows. 361 // behind other windows.
362 Browser* browser = new Browser(gfx::Rect(), SW_SHOWNORMAL, profile(), 362 Browser* browser = new Browser(gfx::Rect(), SW_SHOWNORMAL, profile(),
363 BrowserType::TABBED_BROWSER, 363 BrowserType::TABBED_BROWSER,
364 std::wstring()); 364 std::wstring());
365 browser->OpenURL( 365 browser->OpenURL(
366 GURL(l10n_util::GetString(IDS_LEARN_MORE_HELPMAKECHROMEBETTER_URL)), 366 GURL(l10n_util::GetString(IDS_LEARN_MORE_HELPMAKECHROMEBETTER_URL)),
367 GURL(),
367 NEW_WINDOW, 368 NEW_WINDOW,
368 PageTransition::LINK); 369 PageTransition::LINK);
369 } 370 }
370 } 371 }
371 372
372 void GeneralSection::Layout() { 373 void GeneralSection::Layout() {
373 // We override this to try and set the width of the enable logging checkbox 374 // We override this to try and set the width of the enable logging checkbox
374 // to the width of the parent less some fudging since the checkbox's 375 // to the width of the parent less some fudging since the checkbox's
375 // preferred size calculation code is dependent on its width, and if we don't 376 // preferred size calculation code is dependent on its width, and if we don't
376 // do this then it will return 0 as a preferred width when GridLayout (called 377 // do this then it will return 0 as a preferred width when GridLayout (called
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 void AdvancedScrollViewContainer::Layout() { 1192 void AdvancedScrollViewContainer::Layout() {
1192 gfx::Rect lb = GetLocalBounds(false); 1193 gfx::Rect lb = GetLocalBounds(false);
1193 1194
1194 gfx::Size border = gfx::NativeTheme::instance()->GetThemeBorderSize( 1195 gfx::Size border = gfx::NativeTheme::instance()->GetThemeBorderSize(
1195 gfx::NativeTheme::LIST); 1196 gfx::NativeTheme::LIST);
1196 lb.Inset(border.width(), border.height()); 1197 lb.Inset(border.width(), border.height());
1197 scroll_view_->SetBounds(lb); 1198 scroll_view_->SetBounds(lb);
1198 scroll_view_->Layout(); 1199 scroll_view_->Layout();
1199 } 1200 }
1200 1201
OLDNEW
« no previous file with comments | « chrome/browser/views/info_bar_alternate_nav_url_view.cc ('k') | chrome/browser/views/tabs/dragged_tab_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698