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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 7737001: content: Start splitting up chrome/browser/ui/gtk/gtk_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/bubble/bubble_gtk.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) 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/ui/gtk/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "content/browser/tab_contents/tab_contents.h" 84 #include "content/browser/tab_contents/tab_contents.h"
85 #include "content/browser/tab_contents/tab_contents_view.h" 85 #include "content/browser/tab_contents/tab_contents_view.h"
86 #include "content/common/native_web_keyboard_event.h" 86 #include "content/common/native_web_keyboard_event.h"
87 #include "content/common/notification_service.h" 87 #include "content/common/notification_service.h"
88 #include "content/common/view_messages.h" 88 #include "content/common/view_messages.h"
89 #include "grit/chromium_strings.h" 89 #include "grit/chromium_strings.h"
90 #include "grit/generated_resources.h" 90 #include "grit/generated_resources.h"
91 #include "grit/theme_resources.h" 91 #include "grit/theme_resources.h"
92 #include "grit/theme_resources_standard.h" 92 #include "grit/theme_resources_standard.h"
93 #include "grit/ui_resources.h" 93 #include "grit/ui_resources.h"
94 #include "ui/base/gtk/gtk_hig_constants.h"
94 #include "ui/base/keycodes/keyboard_codes.h" 95 #include "ui/base/keycodes/keyboard_codes.h"
95 #include "ui/base/l10n/l10n_util.h" 96 #include "ui/base/l10n/l10n_util.h"
96 #include "ui/gfx/gtk_util.h" 97 #include "ui/gfx/gtk_util.h"
97 #include "ui/gfx/rect.h" 98 #include "ui/gfx/rect.h"
98 #include "ui/gfx/skia_utils_gtk.h" 99 #include "ui/gfx/skia_utils_gtk.h"
99 100
100 namespace { 101 namespace {
101 102
102 // The number of milliseconds between loading animation frames. 103 // The number of milliseconds between loading animation frames.
103 const int kLoadingAnimationFrameTimeMs = 30; 104 const int kLoadingAnimationFrameTimeMs = 30;
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 gtk_paned_pack2(GTK_PANED(contents_split_), devtools_container_->widget(), 1746 gtk_paned_pack2(GTK_PANED(contents_split_), devtools_container_->widget(),
1746 FALSE, TRUE); 1747 FALSE, TRUE);
1747 gtk_box_pack_end(GTK_BOX(render_area_vbox_), contents_split_, TRUE, TRUE, 0); 1748 gtk_box_pack_end(GTK_BOX(render_area_vbox_), contents_split_, TRUE, TRUE, 0);
1748 1749
1749 gtk_widget_show_all(render_area_floating_container_); 1750 gtk_widget_show_all(render_area_floating_container_);
1750 gtk_widget_hide(devtools_container_->widget()); 1751 gtk_widget_hide(devtools_container_->widget());
1751 render_area_event_box_ = gtk_event_box_new(); 1752 render_area_event_box_ = gtk_event_box_new();
1752 // Set a white background so during startup the user sees white in the 1753 // Set a white background so during startup the user sees white in the
1753 // content area before we get a TabContents in place. 1754 // content area before we get a TabContents in place.
1754 gtk_widget_modify_bg(render_area_event_box_, GTK_STATE_NORMAL, 1755 gtk_widget_modify_bg(render_area_event_box_, GTK_STATE_NORMAL,
1755 &gtk_util::kGdkWhite); 1756 &ui::kGdkWhite);
1756 gtk_container_add(GTK_CONTAINER(render_area_event_box_), 1757 gtk_container_add(GTK_CONTAINER(render_area_event_box_),
1757 render_area_floating_container_); 1758 render_area_floating_container_);
1758 gtk_widget_show(render_area_event_box_); 1759 gtk_widget_show(render_area_event_box_);
1759 gtk_box_pack_end(GTK_BOX(window_vbox_), render_area_event_box_, 1760 gtk_box_pack_end(GTK_BOX(window_vbox_), render_area_event_box_,
1760 TRUE, TRUE, 0); 1761 TRUE, TRUE, 0);
1761 1762
1762 if (IsBookmarkBarSupported()) { 1763 if (IsBookmarkBarSupported()) {
1763 bookmark_bar_.reset(new BookmarkBarGtk(this, 1764 bookmark_bar_.reset(new BookmarkBarGtk(this,
1764 browser_.get(), 1765 browser_.get(),
1765 tabstrip_.get())); 1766 tabstrip_.get()));
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 // are taken from the WMs' source code. 2388 // are taken from the WMs' source code.
2388 return (wm_name == "Blackbox" || 2389 return (wm_name == "Blackbox" ||
2389 wm_name == "compiz" || 2390 wm_name == "compiz" ||
2390 wm_name == "Compiz" || 2391 wm_name == "Compiz" ||
2391 wm_name == "e16" || // Enlightenment DR16 2392 wm_name == "e16" || // Enlightenment DR16
2392 wm_name == "Metacity" || 2393 wm_name == "Metacity" ||
2393 wm_name == "Mutter" || 2394 wm_name == "Mutter" ||
2394 wm_name == "Openbox" || 2395 wm_name == "Openbox" ||
2395 wm_name == "Xfwm4"); 2396 wm_name == "Xfwm4");
2396 } 2397 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/bubble/bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698