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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing 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
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 #include "chrome/browser/views/frame/browser_view.h" 5 #include "chrome/browser/ui/views/frame/browser_view.h"
6 6
7 #if defined(OS_LINUX) 7 #if defined(OS_LINUX)
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #endif 9 #endif
10 10
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/resource_bundle.h" 12 #include "app/resource_bundle.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/i18n/rtl.h" 14 #include "base/i18n/rtl.h"
15 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "views/widget/root_view.h" 81 #include "views/widget/root_view.h"
82 #include "views/window/dialog_delegate.h" 82 #include "views/window/dialog_delegate.h"
83 #include "views/window/window.h" 83 #include "views/window/window.h"
84 84
85 #if defined(OS_WIN) 85 #if defined(OS_WIN)
86 #include "app/view_prop.h" 86 #include "app/view_prop.h"
87 #include "app/win/win_util.h" 87 #include "app/win/win_util.h"
88 #include "chrome/browser/aeropeek_manager.h" 88 #include "chrome/browser/aeropeek_manager.h"
89 #include "chrome/browser/jumplist_win.h" 89 #include "chrome/browser/jumplist_win.h"
90 #elif defined(OS_LINUX) 90 #elif defined(OS_LINUX)
91 #include "chrome/browser/views/accelerator_table_gtk.h" 91 #include "chrome/browser/ui/views/accelerator_table_gtk.h"
92 #include "views/window/hit_test.h" 92 #include "views/window/hit_test.h"
93 #include "views/window/window_gtk.h" 93 #include "views/window/window_gtk.h"
94 #endif 94 #endif
95 95
96 #if defined(OS_CHROMEOS) 96 #if defined(OS_CHROMEOS)
97 #include "chrome/browser/ui/views/keyboard_overlay_delegate.h" 97 #include "chrome/browser/ui/views/keyboard_overlay_delegate.h"
98 #endif 98 #endif
99 99
100 using base::TimeDelta; 100 using base::TimeDelta;
101 using views::ColumnSet; 101 using views::ColumnSet;
(...skipping 14 matching lines...) Expand all
116 static const int kWindowBorderWidth = 5; 116 static const int kWindowBorderWidth = 5;
117 117
118 // If not -1, windows are shown with this state. 118 // If not -1, windows are shown with this state.
119 static int explicit_show_state = -1; 119 static int explicit_show_state = -1;
120 120
121 // How round the 'new tab' style bookmarks bar is. 121 // How round the 'new tab' style bookmarks bar is.
122 static const int kNewtabBarRoundness = 5; 122 static const int kNewtabBarRoundness = 5;
123 // ------------ 123 // ------------
124 124
125 // Returned from BrowserView::GetClassName. 125 // Returned from BrowserView::GetClassName.
126 const char BrowserView::kViewClassName[] = "browser/views/BrowserView"; 126 const char BrowserView::kViewClassName[] = "browser/ui/views/BrowserView";
127 127
128 #if defined(OS_CHROMEOS) 128 #if defined(OS_CHROMEOS)
129 // Get a normal browser window of given |profile| to use as dialog parent 129 // Get a normal browser window of given |profile| to use as dialog parent
130 // if given |browser| is not one. Otherwise, returns browser window of 130 // if given |browser| is not one. Otherwise, returns browser window of
131 // |browser|. If |profile| is NULL, |browser|'s profile is used to find the 131 // |browser|. If |profile| is NULL, |browser|'s profile is used to find the
132 // normal browser. 132 // normal browser.
133 static gfx::NativeWindow GetNormalBrowserWindowForBrowser(Browser* browser, 133 static gfx::NativeWindow GetNormalBrowserWindowForBrowser(Browser* browser,
134 Profile* profile) { 134 Profile* profile) {
135 if (browser->type() != Browser::TYPE_NORMAL) { 135 if (browser->type() != Browser::TYPE_NORMAL) {
136 Browser* normal_browser = BrowserList::FindBrowserWithType( 136 Browser* normal_browser = BrowserList::FindBrowserWithType(
(...skipping 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); 2582 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
2583 2583
2584 return view; 2584 return view;
2585 } 2585 }
2586 #endif 2586 #endif
2587 2587
2588 // static 2588 // static
2589 FindBar* BrowserWindow::CreateFindBar(Browser* browser) { 2589 FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
2590 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window())); 2590 return browser::CreateFindBar(static_cast<BrowserView*>(browser->window()));
2591 } 2591 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698