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

Side by Side Diff: chrome/browser/chromeos/wm_overview_title.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/wm_overview_snapshot.cc ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/chromeos/wm_overview_title.h" 5 #include "chrome/browser/chromeos/wm_overview_title.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/x11_util.h"
10 #include "base/string16.h" 9 #include "base/string16.h"
11 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/browser_window.h" 11 #include "chrome/browser/browser_window.h"
13 #include "chrome/browser/chromeos/drop_shadow_label.h" 12 #include "chrome/browser/chromeos/drop_shadow_label.h"
14 #include "chrome/browser/chromeos/wm_ipc.h" 13 #include "chrome/browser/chromeos/wm_ipc.h"
15 #include "chrome/browser/chromeos/wm_overview_snapshot.h" 14 #include "chrome/browser/chromeos/wm_overview_snapshot.h"
16 #include "third_party/cros/chromeos_wm_ipc_enums.h" 15 #include "third_party/cros/chromeos_wm_ipc_enums.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/base/x/x11_util.h"
18 #include "views/border.h" 18 #include "views/border.h"
19 #include "views/grid_layout.h" 19 #include "views/grid_layout.h"
20 #include "views/view.h" 20 #include "views/view.h"
21 21
22 using std::vector; 22 using std::vector;
23 using views::ColumnSet; 23 using views::ColumnSet;
24 using views::GridLayout; 24 using views::GridLayout;
25 using views::View; 25 using views::View;
26 using gfx::Font; 26 using gfx::Font;
27 27
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 layout->AddView(url_label_); 90 layout->AddView(url_label_);
91 91
92 // Realize the widget. 92 // Realize the widget.
93 WidgetGtk::Init(NULL, gfx::Rect(size)); 93 WidgetGtk::Init(NULL, gfx::Rect(size));
94 94
95 // Make the view the contents view for this widget. 95 // Make the view the contents view for this widget.
96 SetContentsView(view); 96 SetContentsView(view);
97 97
98 // Set the window type 98 // Set the window type
99 vector<int> params; 99 vector<int> params;
100 params.push_back(x11_util::GetX11WindowFromGtkWidget( 100 params.push_back(ui::GetX11WindowFromGtkWidget(
101 GTK_WIDGET(snapshot->GetNativeView()))); 101 GTK_WIDGET(snapshot->GetNativeView())));
102 WmIpc::instance()->SetWindowType( 102 WmIpc::instance()->SetWindowType(
103 GetNativeView(), 103 GetNativeView(),
104 WM_IPC_WINDOW_CHROME_TAB_TITLE, 104 WM_IPC_WINDOW_CHROME_TAB_TITLE,
105 &params); 105 &params);
106 } 106 }
107 107
108 void WmOverviewTitle::SetTitle(const string16& title) { 108 void WmOverviewTitle::SetTitle(const string16& title) {
109 title_label_->SetText(UTF16ToWide(title)); 109 title_label_->SetText(UTF16ToWide(title));
110 } 110 }
111 111
112 void WmOverviewTitle::SetUrl(const GURL& url) { 112 void WmOverviewTitle::SetUrl(const GURL& url) {
113 url_label_->SetURL(url); 113 url_label_->SetURL(url);
114 } 114 }
115 } // namespace chromeos 115 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/wm_overview_snapshot.cc ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698