Remove URL and Back/Forward/Refresh Buttons

1,180 views
Skip to first unread message

Theo Reaves

unread,
Mar 4, 2014, 5:35:13 PM3/4/14
to chromi...@chromium.org
I want to remove the URL input box, along with the Back,Forward, Refresh Buttons for a project I am working on. (I want a custom version that only works with one server address).  Can someone point me in the right direction?

I would also like to make changes to the settings window, so that would be good info too.

Thanks.

Peter Kasting

unread,
Mar 4, 2014, 5:36:49 PM3/4/14
to theo....@gmail.com, Chromium-dev
On Tue, Mar 4, 2014 at 2:35 PM, Theo Reaves <theo....@gmail.com> wrote:
I want to remove the URL input box, along with the Back,Forward, Refresh Buttons for a project I am working on. (I want a custom version that only works with one server address).  Can someone point me in the right direction?

Have you considered using the existing "Create application shortcuts" or kiosk mode functionality?  Both these reduce or remove browser chrome, and one might be close enough that you can avoid doing work.

PK

Theo Reaves

unread,
Mar 4, 2014, 5:40:39 PM3/4/14
to Peter Kasting, Chromium-dev
That is exactly what I want to do.  Only, I want a branded version of Chrome so that I can possibly add other functionality at some point.  Is there a way in the code to have it start up in this mode?

Peter Kasting

unread,
Mar 4, 2014, 5:41:54 PM3/4/14
to Theo Reaves, Chromium-dev
On Tue, Mar 4, 2014 at 2:40 PM, Theo Reaves <theo....@gmail.com> wrote:
That is exactly what I want to do.  Only, I want a branded version of Chrome so that I can possibly add other functionality at some point.  Is there a way in the code to have it start up in this mode?

I would look at what switches are passed in the shortcut created by the "Create application shortcuts" command.  That's the best answer I have.

PK 

François Beaufort

unread,
Mar 5, 2014, 3:27:44 AM3/5/14
to chromi...@chromium.org
Did you also think about building a Chrome App that uses a WebView?
Here's a browser sample of what you may accomplish: https://github.com/GoogleChrome/chrome-app-samples/tree/master/browser

Theo Reaves

unread,
Mar 5, 2014, 8:44:01 AM3/5/14
to beaufort...@gmail.com, chromi...@chromium.org
That sound good, but I’d really rather create my own compile of chromium.  Once I get this part figured out, there are some other things I’m looking at doing also so I’d rather continue with the custom build option at this time.



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Thiago Farina

unread,
Mar 5, 2014, 12:21:52 PM3/5/14
to theo....@gmail.com, beaufort...@gmail.com, Chromium-dev
On Wed, Mar 5, 2014 at 10:44 AM, Theo Reaves <theo....@gmail.com> wrote:
That sound good, but I’d really rather create my own compile of chromium.  Once I get this part figured out, there are some other things I’m looking at doing also so I’d rather continue with the custom build option at this time.

Which platform are you trying to build? Mac, Windows, Linux, ChromeOS? 


--
Thiago Farina

Thiago Farina

unread,
Mar 5, 2014, 12:40:54 PM3/5/14
to Theo Reaves, Chromium-dev



On Wed, Mar 5, 2014 at 2:36 PM, Theo Reaves <theo....@gmail.com> wrote:
I’m looking to do this on both Mac and Windows.  I’m currently working on the Mac version.

Please, keep the mailing list in the CC when replying.

--
Thiago Farina

Theo Reaves

unread,
Mar 5, 2014, 11:27:36 PM3/5/14
to chromi...@chromium.org
So, I think I now know what the URL input box is called... Omnibox?  I have found several parts of the code that deal with it, but what I havn't found is any part of the code that controls how it looks on the screen, the length, visibility or any of that.  I'd think to hide it from my users, I would just need to set it to invisible, or set it length to 0, but I don't see where that is handled.  I am wanting to do this for both MAC and PC. 

Peter Kasting

unread,
Mar 6, 2014, 2:07:07 PM3/6/14
to Theo Reaves, Chromium-dev
On Wed, Mar 5, 2014 at 8:27 PM, Theo Reaves <theo....@gmail.com> wrote:
So, I think I now know what the URL input box is called... Omnibox?  I have found several parts of the code that deal with it, but what I havn't found is any part of the code that controls how it looks on the screen, the length, visibility or any of that.  I'd think to hide it from my users, I would just need to set it to invisible, or set it length to 0, but I don't see where that is handled.  I am wanting to do this for both MAC and PC.

The code is entirely different for Mac and Windows.  One is in Obj-C, one is in C++ and uses the views UI framework.  What you really want is the toolbar code, not the omnibox code, because the toolbar determines the size, position, and visibility of all its children.

PK 

Theo Reaves

unread,
Mar 10, 2014, 5:26:03 PM3/10/14
to chromi...@chromium.org, Theo Reaves
For the windows side of things, I think what I really want to do is force the browser into the "--app=http://site/url" mode.  Any help in finding where this could be done would be appreciated as allways.

Thanks.

Peter Kasting

unread,
Mar 10, 2014, 5:38:47 PM3/10/14
to Theo Reaves, Chromium-dev
On Mon, Mar 10, 2014 at 2:26 PM, Theo Reaves <theo....@gmail.com> wrote:
For the windows side of things, I think what I really want to do is force the browser into the "--app=http://site/url" mode.  Any help in finding where this could be done would be appreciated as allways.

I would do this as follows:
(1) Look for where the "app" switch name is defined, to determine what the switch is called.  This can be done by searching the code for "app", including the double quotes.  The result will be something like "kApp".
(2) Then search the code for use of that switch name.  This should guide you to the places we currently determine whether we should be in app mode.

PK
Reply all
Reply to author
Forward
0 new messages