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

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

Issue 10808068: Store ChromeToMobile device list and timestamp prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add GetMobiles ownership/lifetime comment. Created 8 years, 5 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) 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/gtk/location_bar_view_gtk.h" 5 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 gtk_widget_hide_all(star_.get()); 1335 gtk_widget_hide_all(star_.get());
1336 } 1336 }
1337 } 1337 }
1338 1338
1339 void LocationBarViewGtk::UpdateChromeToMobileIcon() { 1339 void LocationBarViewGtk::UpdateChromeToMobileIcon() {
1340 if (!chrome_to_mobile_view_.get()) 1340 if (!chrome_to_mobile_view_.get())
1341 return; 1341 return;
1342 1342
1343 Profile* profile = browser_->profile(); 1343 Profile* profile = browser_->profile();
1344 bool enabled = !toolbar_model_->input_in_progress() && 1344 bool enabled = !toolbar_model_->input_in_progress() &&
1345 ChromeToMobileServiceFactory::GetForProfile(profile)->HasDevices(); 1345 ChromeToMobileServiceFactory::GetForProfile(profile)->HasMobiles();
1346 gtk_widget_set_visible(chrome_to_mobile_view_.get(), enabled); 1346 gtk_widget_set_visible(chrome_to_mobile_view_.get(), enabled);
1347 command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled); 1347 command_updater_->UpdateCommandEnabled(IDC_CHROME_TO_MOBILE_PAGE, enabled);
1348 } 1348 }
1349 1349
1350 bool LocationBarViewGtk::ShouldOnlyShowLocation() { 1350 bool LocationBarViewGtk::ShouldOnlyShowLocation() {
1351 return !browser_->is_type_tabbed(); 1351 return !browser_->is_type_tabbed();
1352 } 1352 }
1353 1353
1354 void LocationBarViewGtk::AdjustChildrenVisibility() { 1354 void LocationBarViewGtk::AdjustChildrenVisibility() {
1355 int text_width = location_entry_->TextWidth(); 1355 int text_width = location_entry_->TextWidth();
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 } 1973 }
1974 1974
1975 void LocationBarViewGtk::PageActionViewGtk::InspectPopup( 1975 void LocationBarViewGtk::PageActionViewGtk::InspectPopup(
1976 ExtensionAction* action) { 1976 ExtensionAction* action) {
1977 ExtensionPopupGtk::Show( 1977 ExtensionPopupGtk::Show(
1978 action->GetPopupUrl(current_tab_id_), 1978 action->GetPopupUrl(current_tab_id_),
1979 owner_->browser_, 1979 owner_->browser_,
1980 event_box_.get(), 1980 event_box_.get(),
1981 ExtensionPopupGtk::SHOW_AND_INSPECT); 1981 ExtensionPopupGtk::SHOW_AND_INSPECT);
1982 } 1982 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/chrome_to_mobile_bubble_gtk.cc ('k') | chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698